summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonas Sulzer <jonas@violoncello.ch>2019-05-30 01:32:41 +0200
committerJonas Sulzer <jonas@violoncello.ch>2019-05-30 01:32:41 +0200
commite2b9ed22e5e09d67318319bfda5ac6cbd2d33170 (patch)
tree59f1803aac6da51ae825ff813db0c7aca38c8ca3 /src
parent8e7d1f7d7e981de248f92962e555b3fb9b175fd8 (diff)
👌 IMPROVE: don't display Announce if original Note is already present in stream
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Diffstat (limited to 'src')
-rw-r--r--src/components/TimelineEntry.vue12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue
index 5b2b9997..a88147a3 100644
--- a/src/components/TimelineEntry.vue
+++ b/src/components/TimelineEntry.vue
@@ -1,5 +1,5 @@
<template>
- <div class="timeline-entry">
+ <div v-if="noDuplicateBoost" class="timeline-entry">
<div v-if="item.type === 'Announce'" class="boost">
<div class="container-icon-boost">
<span class="icon-boost" />
@@ -51,6 +51,16 @@ export default {
},
boosted() {
return t('social', 'boosted')
+ },
+ noDuplicateBoost() {
+ if (this.item.type === 'Announce') {
+ for (var e in this.$store.state.timeline.timeline) {
+ if (this.item.cache[this.item.object].object.id === e) {
+ return false
+ }
+ }
+ }
+ return true
}
},
methods: {