mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-14 19:53:06 -05:00
[Glitch] Fix status mismatch of sensitive check
Port 14e2354eeaf1f89a0f81302aa92661977be15daf to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
a2e7997592
commit
32b43a96a7
@ -578,6 +578,10 @@ export default function compose(state = initialState, action) {
|
||||
if (action.status.get('spoiler_text').length > 0) {
|
||||
map.set('spoiler', true);
|
||||
map.set('spoiler_text', action.status.get('spoiler_text'));
|
||||
|
||||
if (map.get('media_attachments').size >= 1) {
|
||||
map.set('sensitive', true);
|
||||
}
|
||||
} else {
|
||||
map.set('spoiler', false);
|
||||
map.set('spoiler_text', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user