diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2019-09-14 16:18:57 +0200 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2019-09-25 14:07:24 +0200 |
commit | 9b51fc5834ecaffa91e1cf90a7728a8846339b44 (patch) | |
tree | 88629fb6676e06a9435854eedd55f8a33c2188d6 /src | |
parent | a4de752d9c7b1c129daadfe10c22f25649383702 (diff) |
Do not call the single post timeline when clicking on a link, a post's attachment,
or a post's author name.
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/TimelineEntry.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue index 408813c4..fc0c57c5 100644 --- a/src/components/TimelineEntry.vue +++ b/src/components/TimelineEntry.vue @@ -94,7 +94,13 @@ export default { } }, methods: { - getSinglePostTimeline() { + getSinglePostTimeline(e) { + + // Do not call the single-post view when clicking on a link, a post attachment miniature or the post's author + if (e.target.tagName === 'A' || e.target.tagName === 'IMG' || e.target.className.startsWith('post-author')) { + return + } + this.$router.push({ name: 'single-post', params: { id: this.item.id, |