Skip to content

Commit

Permalink
Fix “mark as sensitive” not being used in delete & redraft (mastodon#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and multiple creatures committed Nov 19, 2019
1 parent d5cebd1 commit df2518d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/mastodon/reducers/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ export default function compose(state = initialState, action) {
map.set('focusDate', new Date());
map.set('caretPosition', null);
map.set('idempotencyKey', uuid());
map.set('sensitive', action.status.get('sensitive'));

if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);
Expand Down

0 comments on commit df2518d

Please sign in to comment.