mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Fix “mark as sensitive” not being used in delete & redraft
Port 2657765d2a6804f34ce65bfdab7ec96f07d99732 to glitch-soc
This commit is contained in:
parent
b32a62fe95
commit
417989ae34
@ -442,6 +442,7 @@ export default function compose(state = initialState, action) {
|
|||||||
map.set('focusDate', new Date());
|
map.set('focusDate', new Date());
|
||||||
map.set('caretPosition', null);
|
map.set('caretPosition', null);
|
||||||
map.set('idempotencyKey', uuid());
|
map.set('idempotencyKey', uuid());
|
||||||
|
map.set('sensitive', action.status.get('sensitive'));
|
||||||
|
|
||||||
if (action.status.get('spoiler_text').length > 0) {
|
if (action.status.get('spoiler_text').length > 0) {
|
||||||
map.set('spoiler', true);
|
map.set('spoiler', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user