don't prepend 're:' to CW when self-replying

This commit is contained in:
Holly 2021-02-03 15:37:48 +00:00
parent 2e7a819b98
commit b549e95611
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ export default function compose(state = initialState, action) {
if (action.status.get('spoiler_text').length > 0) { if (action.status.get('spoiler_text').length > 0) {
let spoiler_text = action.status.get('spoiler_text'); let spoiler_text = action.status.get('spoiler_text');
if (action.prependCWRe && !spoiler_text.match(/^re[: ]/i)) { if (action.prependCWRe && !spoiler_text.match(/^re[: ]/i) && action.status.getIn(['account', 'id']) !== me) {
spoiler_text = 're: '.concat(spoiler_text); spoiler_text = 're: '.concat(spoiler_text);
} }
map.set('spoiler', true); map.set('spoiler', true);