diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-03-27 20:28:55 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-03-27 20:28:55 +0000 |
| commit | aed0943678ffb96df0c281a7edbba63aaa6578e8 (patch) | |
| tree | 79eeb566c57664b3214dd8088b27b88de6ea693a /src/modules/statuses.js | |
| parent | 4d66b9cf45c3ae2c965347860383767921f5eb55 (diff) | |
| parent | 66ab131bd431f955814d0c85e8d9445fc8e46c51 (diff) | |
Merge branch 'mastoapi/actions' into 'develop'
transition to MastoAPI: Basic user/statuses manipulation
See merge request pleroma/pleroma-fe!669
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index a16342e0..944b45c1 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -433,13 +433,6 @@ const statuses = { // Optimistic favoriting... commit('setFavorited', { status, value: true }) apiService.favorite({ id: status.id, credentials: rootState.users.currentUser.credentials }) - .then(response => { - if (response.ok) { - return response.json() - } else { - return {} - } - }) .then(status => { commit('setFavoritedConfirm', { status }) }) @@ -448,13 +441,6 @@ const statuses = { // Optimistic favoriting... commit('setFavorited', { status, value: false }) apiService.unfavorite({ id: status.id, credentials: rootState.users.currentUser.credentials }) - .then(response => { - if (response.ok) { - return response.json() - } else { - return {} - } - }) .then(status => { commit('setFavoritedConfirm', { status }) }) |
