diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-14 17:40:20 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-16 14:06:04 +0200 |
commit | ef8c6f81fc74bd07670a6b6d31bea8cbef53a86e (patch) | |
tree | a33828577bf62b538bbe189f1653d9b8726a0e17 /src | |
parent | 6e7cb67c934acc5092263196fe77b5a8c447e385 (diff) |
fix js
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/MessageContent.js | 3 | ||||
-rw-r--r-- | src/components/TimelineEntry.vue | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/MessageContent.js b/src/components/MessageContent.js index ff4e23cf..d8fe78a8 100644 --- a/src/components/MessageContent.js +++ b/src/components/MessageContent.js @@ -24,6 +24,9 @@ export default Vue.component('MessageContent', { * All attributes other than `href` for links are stripped from the source */ export function formatMessage(createElement, source) { + if (!source.tag) { + source.tag = [] + } let mentions = source.tag.filter(tag => tag.type === 'Mention') let hashtags = source.tag.filter(tag => tag.type === 'Hashtag') diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue index 3576b2ef..97f714c6 100644 --- a/src/components/TimelineEntry.vue +++ b/src/components/TimelineEntry.vue @@ -1,5 +1,5 @@ <template> - <div :class="['timeline-entry', hasHeader ? 'with-header' : '']" @click="getSinglePostTimeline"> + <div :class="['timeline-entry', hasHeader ? 'with-header' : '']"> <template v-if="item.type === 'SocialAppNotification'"> <div class="notification-icon" :class="notificationIcon" /> <span class="notification-action"> |