diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-21 13:13:21 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-21 15:23:41 +0100 |
commit | bb1fceb801e5ba6270bd321a735822c8fafb21f9 (patch) | |
tree | 27e5d3586531c395891f6d65c574613c00ee5cac /src/store | |
parent | 25aeb5b4b49450bffa0c1ea155efb18b4d272b40 (diff) |
Fix eslint errors for composition
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/timeline.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/store/timeline.js b/src/store/timeline.js index a2e110ac..9c89ea23 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -41,9 +41,8 @@ const getters = { } const actions = { post(context, post) { - return axios.post(OC.generateUrl('apps/social/api/v1/post'), {data: post}).then((response) => { - let uid = '' - context.commit('addPost', { uid: uid, data: response.data }) + return axios.post(OC.generateUrl('apps/social/api/v1/post'), { data: post }).then((response) => { + context.commit('addPost', { data: response.data }) }) }, fetchTimeline(context, account) { |