👌 IMPROVE: don't display Announce if original Note is already present in stream

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
pull/546/head
Jonas Sulzer 2019-05-30 01:32:41 +02:00
rodzic 8e7d1f7d7e
commit e2b9ed22e5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6D1DC8E0D9904C83
1 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -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: {