summaryrefslogtreecommitdiffstats
path: root/src/components/TimelineEntry.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/TimelineEntry.vue')
-rw-r--r--src/components/TimelineEntry.vue32
1 files changed, 1 insertions, 31 deletions
diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue
index d6815280..61833343 100644
--- a/src/components/TimelineEntry.vue
+++ b/src/components/TimelineEntry.vue
@@ -1,5 +1,5 @@
<template>
- <div class="timeline-entry" @click="getSinglePostTimeline">
+ <div class="timeline-entry">
<div v-if="item.type === 'SocialAppNotification'">
{{ actionSummary }}
</div>
@@ -30,7 +30,6 @@
</template>
<script>
-import Logger from '../logger'
import TimelinePost from './TimelinePost.vue'
export default {
@@ -95,35 +94,6 @@ export default {
}
},
methods: {
- 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')) {
- Logger.debug('will not call single-post', { event: e })
- return
- }
-
- // Display internal or external post
- if (!this.item.local) {
- if (this.item.type === 'Note') {
- window.open(this.item.id)
- } else if (this.item.type === 'Announce') {
- window.open(this.item.object)
- } else {
- Logger.warn("Don't know what to do with posts of type " + this.item.type, { post: this.item })
- }
- } else {
- this.$router.push({ name: 'single-post',
- params: {
- account: this.item.actor_info.preferredUsername,
- id: this.item.id,
- localId: this.item.id.split('/')[this.item.id.split('/').length - 1],
- type: 'single-post'
- }
- })
- }
-
- },
userDisplayName(actorInfo) {
return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername
}