diff --git a/src/components/Post.vue b/src/components/Post.vue
index 8e41541..7ab4aa1 100644
--- a/src/components/Post.vue
+++ b/src/components/Post.vue
@@ -26,7 +26,7 @@
title="Go to previous post"
@mouseover="highlight(post.in_reply_to_id)"
@mouseleave="highlight(null)"
- @click="navigateTo(post.in_reply_to_id)"
+ @click="navigateTo($event, post.in_reply_to_id)"
>
@@ -40,7 +40,7 @@
{{ humanizeDate(post.created_at) }}
@@ -339,13 +339,12 @@ function highlight(postId: string | null) {
emit("highlight", postId)
}
-function navigateTo(event: Event) {
+function navigateTo(event: Event, postId: string) {
if (currentUser === null) {
// Viewing as guest; do not override click handler
return
}
event.preventDefault()
- const postId = props.post.id
if (props.inThread) {
emit("navigate-to", postId)
} else {