Преглед на файлове

Use post number rather than id for share link

sbkwgh преди 8 години
родител
ревизия
eaeb46c00d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/ThreadPost.vue

+ 1 - 1
src/components/ThreadPost.vue

@@ -78,7 +78,7 @@
 			return {
 				hover: false,
 				showShareModal: false,
-				postURL: `${location.origin}/thread/${post.Thread.slug}/${post.ThreadId}/${post.id}`
+				postURL: `${location.origin}/thread/${post.Thread.slug}/${post.ThreadId}/${post.postNumber}`
 			}
 		},
 		methods: {