Reblogs fixed

이 커밋은 다음에 포함됨:
Eugen Rochko
2016-09-01 14:12:11 +02:00
부모 595c8dda60
커밋 c249ceb10c
8개의 변경된 파일51개의 추가작업 그리고 7개의 파일을 삭제
+3 -1
파일 보기
@@ -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));
});