From 9d27b85c884acbdaad3aa725e47a503d00279cd8 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 1 Jul 2019 09:26:33 -0100 Subject: cleaning noDuplicateBoost as not necessary anymore Signed-off-by: Maxence Lange --- src/components/TimelineEntry.vue | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue index 66270851..415abdb0 100644 --- a/src/components/TimelineEntry.vue +++ b/src/components/TimelineEntry.vue @@ -3,7 +3,7 @@
{{ actionSummary }}
-
+
@@ -19,7 +19,7 @@ {{ boosted }}
- +
@@ -58,22 +58,13 @@ 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 - }, actionSummary() { + let summary for (var key in this.item.details) { let keyword = '{' + key + '}' - this.item.summary = this.item.summary.replace(keyword, this.item.details[key]) + summary = this.item.summary.replace(keyword, JSON.stringify(this.item.details[key])) } - return this.item.summary + return summary } }, methods: { -- cgit v1.2.3