Merge branch 'sensitive' into fork

This commit is contained in:
marcin mikołajczak
2024-04-28 15:27:15 +02:00
24 changed files with 81 additions and 355 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');
};