diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-11-28 14:49:47 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-11-28 14:49:47 +0100 |
commit | 191d67e4d0863257c89eddf98c0654ff0a2c614f (patch) | |
tree | 7ec2d1f995c62ec8352d3a595e3abe4ecf68607f /src/store | |
parent | 8b068521c8ae6f81ef669add5bcf8655b9e733a0 (diff) |
Log token to browser console
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/timeline.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/store/timeline.js b/src/store/timeline.js index 411c1343..a77fcb4e 100644 --- a/src/store/timeline.js +++ b/src/store/timeline.js @@ -58,7 +58,8 @@ const actions = { }, post(context, post) { return axios.post(OC.generateUrl('apps/social/api/v1/post'), { data: post }).then((response) => { - context.commit('addPost', { data: response.data }) + // eslint-disable-next-line no-console + console.log('Post created with token ' + response.data.result.token) }).catch((error) => { OC.Notification.showTemporary('Failed to create a post') console.error('Failed to create a post', error) |