mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
When replying to CW content, CW will be added
This commit is contained in:
@ -145,6 +145,23 @@ const ScreenCompose: React.FC<ScreenComposeProp> = ({
|
||||
})
|
||||
break
|
||||
case 'reply':
|
||||
const actualStatus =
|
||||
params.incomingStatus.reblog || params.incomingStatus
|
||||
if (actualStatus.spoiler_text) {
|
||||
formatText({
|
||||
textInput: 'spoiler',
|
||||
composeDispatch,
|
||||
content: actualStatus.spoiler_text,
|
||||
disableDebounce: true
|
||||
})
|
||||
}
|
||||
formatText({
|
||||
textInput: 'text',
|
||||
composeDispatch,
|
||||
content: params.accts.map(acct => `@${acct}`).join(' ') + ' ',
|
||||
disableDebounce: true
|
||||
})
|
||||
break
|
||||
case 'conversation':
|
||||
formatText({
|
||||
textInput: 'text',
|
||||
|
Reference in New Issue
Block a user