diff options
| author | dave <starpumadev@gmail.com> | 2019-03-28 09:54:55 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-03-28 09:54:55 -0400 |
| commit | e24145e2335a55c20ebbca59247e1d0b74d67bee (patch) | |
| tree | ee778ed93d1f8ddc4ab3229feb1769b1c44e66f9 /src/modules/statuses.js | |
| parent | 43e97e590c98d1f1bb500f96d2b604b968fbbbb3 (diff) | |
| parent | e2e3a65c44c1bd73d3d727333e6163e9b0d07653 (diff) | |
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into issue-433-status-reply-form
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 }) }) |
