diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-01-07 18:11:50 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2020-01-07 19:05:31 +0100 |
commit | 180f1383943ad171d8394ef9af7c7861bfc08056 (patch) | |
tree | 09ab2eb1357805e792ffcce282fe9d860e8524e8 /app/javascript/flavours/glitch/reducers/compose.js | |
parent | 9871466958a5db6c4b75cab120eb6ca706c26d7e (diff) |
Make prepending “re: ” to CWs on reply optional
Diffstat (limited to 'app/javascript/flavours/glitch/reducers/compose.js')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index 0f807790b..92a9859d9 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -387,7 +387,7 @@ export default function compose(state = initialState, action) { if (action.status.get('spoiler_text').length > 0) { let spoiler_text = action.status.get('spoiler_text'); - if (!spoiler_text.match(/^re[: ]/i)) { + if (action.prependCWRe && !spoiler_text.match(/^re[: ]/i)) { spoiler_text = 're: '.concat(spoiler_text); } map.set('spoiler', true); |