From 50ead4f16ecbb9a8a9e00de88f72cbe4dd5d6703 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 26 Nov 2022 14:12:50 -0600 Subject: [PATCH] Mention the author when quote-posting them Fixes https://gitlab.com/soapbox-pub/soapbox/-/issues/1202 --- app/soapbox/reducers/compose.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soapbox/reducers/compose.ts b/app/soapbox/reducers/compose.ts index 8e7fe6b0e..c4d60dc1d 100644 --- a/app/soapbox/reducers/compose.ts +++ b/app/soapbox/reducers/compose.ts @@ -319,10 +319,11 @@ export default function compose(state = initialState, action: AnyAction) { })); case COMPOSE_QUOTE: return updateCompose(state, 'compose-modal', compose => compose.withMutations(map => { + const author = action.status.getIn(['account', 'acct']); const defaultCompose = state.get('default')!; map.set('quote', action.status.get('id')); - map.set('to', ImmutableOrderedSet()); + map.set('to', ImmutableOrderedSet([author])); map.set('text', ''); map.set('privacy', privacyPreference(action.status.visibility, defaultCompose.privacy)); map.set('focusDate', new Date());