diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/TimelinePost.vue | 2 | ||||
-rw-r--r-- | src/store/timeline.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index 99e88c3f..ed542881 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -145,7 +145,7 @@ export default { var a = '<a href="' + OC.generateUrl('/apps/social/timeline/tags/' + matched.substring(1)) + '">' + matched + '</a>' return a }) - return msg; + return msg }, userDisplayName(actorInfo) { return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername diff --git a/src/store/timeline.js b/src/store/timeline.js index 978154b0..72c29677 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -144,10 +144,10 @@ const actions = { postUnlike(context, { post, parentAnnounce }) { return axios.delete(OC.generateUrl(`apps/social/api/v1/post/like?postId=${post.id}`)).then((response) => { context.commit('unlikePost', { post, parentAnnounce }) - // Remove post from list if we are in the 'liked' timeline - if (state.type === 'liked') { - context.commit('removePost', post) - } + // Remove post from list if we are in the 'liked' timeline + if (state.type === 'liked') { + context.commit('removePost', post) + } }).catch((error) => { OC.Notification.showTemporary('Failed to unlike post') console.error('Failed to unlike post', error) |