Mention the author when quote-posting them
Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1202
This commit is contained in:
parent
0be017ea78
commit
50ead4f16e
|
@ -319,10 +319,11 @@ export default function compose(state = initialState, action: AnyAction) {
|
||||||
}));
|
}));
|
||||||
case COMPOSE_QUOTE:
|
case COMPOSE_QUOTE:
|
||||||
return updateCompose(state, 'compose-modal', compose => compose.withMutations(map => {
|
return updateCompose(state, 'compose-modal', compose => compose.withMutations(map => {
|
||||||
|
const author = action.status.getIn(['account', 'acct']);
|
||||||
const defaultCompose = state.get('default')!;
|
const defaultCompose = state.get('default')!;
|
||||||
|
|
||||||
map.set('quote', action.status.get('id'));
|
map.set('quote', action.status.get('id'));
|
||||||
map.set('to', ImmutableOrderedSet());
|
map.set('to', ImmutableOrderedSet([author]));
|
||||||
map.set('text', '');
|
map.set('text', '');
|
||||||
map.set('privacy', privacyPreference(action.status.visibility, defaultCompose.privacy));
|
map.set('privacy', privacyPreference(action.status.visibility, defaultCompose.privacy));
|
||||||
map.set('focusDate', new Date());
|
map.set('focusDate', new Date());
|
||||||
|
|
Loading…
Reference in New Issue