Explorar o código

Use post number rather than id for share link

sbkwgh %!s(int64=8) %!d(string=hai) anos
pai
achega
eaeb46c00d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: {