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 hiyuki2578 committed Oct 2, 2019
1 parent ad01be7 commit c7c948f
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 c7c948f

Please sign in to comment.