Make prepending “re: ” to CWs on reply optional
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user