summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-07-26 14:11:00 -0100
committerMaxence Lange <maxence@artificial-owl.com>2019-07-26 14:11:00 -0100
commitbaf8aa54e0177bb80ecde1a7930b19ab1e2007b0 (patch)
treeca048a4a94ae56512aeac9e1703d68f6191402dd
parente2fd1c7a7ebd53ead923938428d0df156b447d1e (diff)
eslint
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r--src/components/TimelinePost.vue2
-rw-r--r--src/store/timeline.js8
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)