Support 'in review' sensitive content

This commit is contained in:
Justin
2022-08-18 14:23:34 -04:00
parent d38aa68870
commit dd0f2fcf5b
8 changed files with 315 additions and 17 deletions

View File

@@ -11,7 +11,9 @@ export const defaultMediaVisibility = (status: StatusEntity | undefined | null,
status = status.reblog;
}
return (displayMedia !== 'hide_all' && !status.sensitive || displayMedia === 'show_all');
const isSensitive = status.sensitive || status.visibility === 'self';
return (displayMedia !== 'hide_all' && !isSensitive || displayMedia === 'show_all');
};
/** Grab the first external link from a status. */