kopia lustrzana https://github.com/nextcloud/social
👌 IMPROVE: don't display Announce if original Note is already present in stream
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>pull/546/head
rodzic
8e7d1f7d7e
commit
e2b9ed22e5
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="timeline-entry">
|
<div v-if="noDuplicateBoost" class="timeline-entry">
|
||||||
<div v-if="item.type === 'Announce'" class="boost">
|
<div v-if="item.type === 'Announce'" class="boost">
|
||||||
<div class="container-icon-boost">
|
<div class="container-icon-boost">
|
||||||
<span class="icon-boost" />
|
<span class="icon-boost" />
|
||||||
|
|
@ -51,6 +51,16 @@ export default {
|
||||||
},
|
},
|
||||||
boosted() {
|
boosted() {
|
||||||
return t('social', '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: {
|
methods: {
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue