|
|
@ -71,6 +71,7 @@ export function submitCompose() { |
|
|
|
}).then(function (response) { |
|
|
|
}).then(function (response) { |
|
|
|
dispatch(submitComposeSuccess(response.data)); |
|
|
|
dispatch(submitComposeSuccess(response.data)); |
|
|
|
dispatch(updateTimeline('home', response.data)); |
|
|
|
dispatch(updateTimeline('home', response.data)); |
|
|
|
|
|
|
|
dispatch(updateTimeline('public', response.data)); |
|
|
|
}).catch(function (error) { |
|
|
|
}).catch(function (error) { |
|
|
|
dispatch(submitComposeFail(error)); |
|
|
|
dispatch(submitComposeFail(error)); |
|
|
|
}); |
|
|
|
}); |
|
|
|