mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-17 07:32:09 +00:00
Process statuses on COMPOSE_SUBMIT_SUCCESS (fixes #579)
This commit is contained in:
parent
012ca4c68d
commit
8501ad5c5c
|
@ -14,6 +14,9 @@ import {
|
||||||
PIN_SUCCESS,
|
PIN_SUCCESS,
|
||||||
UNPIN_SUCCESS,
|
UNPIN_SUCCESS,
|
||||||
} from 'flavours/glitch/actions/interactions';
|
} from 'flavours/glitch/actions/interactions';
|
||||||
|
import {
|
||||||
|
COMPOSE_SUBMIT_SUCCESS,
|
||||||
|
} from 'flavours/glitch/actions/compose';
|
||||||
import {
|
import {
|
||||||
STATUS_FETCH_SUCCESS,
|
STATUS_FETCH_SUCCESS,
|
||||||
CONTEXT_FETCH_SUCCESS,
|
CONTEXT_FETCH_SUCCESS,
|
||||||
|
@ -101,6 +104,7 @@ export default function statuses(state = initialState, action) {
|
||||||
case TIMELINE_UPDATE:
|
case TIMELINE_UPDATE:
|
||||||
case STATUS_FETCH_SUCCESS:
|
case STATUS_FETCH_SUCCESS:
|
||||||
case NOTIFICATIONS_UPDATE:
|
case NOTIFICATIONS_UPDATE:
|
||||||
|
case COMPOSE_SUBMIT_SUCCESS:
|
||||||
return normalizeStatus(state, action.status);
|
return normalizeStatus(state, action.status);
|
||||||
case REBLOG_SUCCESS:
|
case REBLOG_SUCCESS:
|
||||||
case UNREBLOG_SUCCESS:
|
case UNREBLOG_SUCCESS:
|
||||||
|
|
Loading…
Reference in a new issue