Improve sensitive content logic, remove 'status under review'

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-21 19:07:14 +02:00
parent b8093ace04
commit 5f98175a32
19 changed files with 71 additions and 327 deletions

View File

@@ -11,12 +11,6 @@ export const defaultMediaVisibility = <T extends { reblog: T | string | null } &
if (!status) return false;
status = getActualStatus(status);
const isUnderReview = status.visibility === 'self';
if (isUnderReview) {
return false;
}
return (displayMedia !== 'hide_all' && !status.sensitive || displayMedia === 'show_all');
};