Reblogs fixed
This commit is contained in:
1 parent
595c8dda60
commit
c249ceb10c
8 files changed
+51
-7
No files matched your search
@@ -15,7 +15,9 @@ export function reblog(status) {
|
||||
dispatch(reblogRequest(status));
|
||||
|
||||
api(getState).post(`/api/statuses/${status.get('id')}/reblog`).then(function (response) {
|
||||
dispatch(reblogSuccess(status, response.data));
|
||||
// The reblog API method returns a new status wrapped around the original. In this case we are only
|
||||
// interested in how the original is modified, hence passing it skipping the wrapper
|
||||
dispatch(reblogSuccess(status, response.data.reblog));
|
||||
}).catch(function (error) {
|
||||
dispatch(reblogFail(status, error));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user