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