Fix redraft quote

This commit is contained in:
noellabo 2023-01-04 10:59:38 +09:00
parent ec075c3ccb
commit 5d6d1e9d8d

View file

@ -610,7 +610,7 @@ export default function compose(state = initialState, action) {
map.set('scheduled', action.status.get('scheduled_at'));
map.set('expires', action.status.get('expires_at') ? format(parseISO(action.status.get('expires_at')), 'yyyy-MM-dd HH:mm') : state.get('default_expires_in', null));
map.set('expires_action', action.status.get('expires_action') ?? state.get('default_expires_action', 'mark'));
map.update('references', set => set.clear().concat(action.status.get('status_reference_ids')));
map.update('references', set => set.clear().concat(action.status.get('status_reference_ids')).delete(action.status.getIn(['quote', 'id'])));
map.update('context_references', set => set.clear().concat(action.context_references));
if (action.status.get('spoiler_text').length > 0) {