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

@@ -20,7 +20,7 @@ import { maybeFromJS } from 'soapbox/utils/normalizers';
import type { Account, Attachment, Card, Emoji, Group, Mention, Poll, EmbeddedEntity, EmojiReaction } from 'soapbox/types/entities';
export type StatusApprovalStatus = 'pending' | 'approval' | 'rejected';
export type StatusVisibility = 'public' | 'unlisted' | 'private' | 'direct' | 'self' | 'group';
export type StatusVisibility = 'public' | 'unlisted' | 'private' | 'direct' | 'group';
export type EventJoinMode = 'free' | 'restricted' | 'invite';
export type EventJoinState = 'pending' | 'reject' | 'accept';
@@ -88,7 +88,7 @@ export const StatusRecord = ImmutableRecord({
// Internal fields
contentHtml: '',
expectsCard: false,
hidden: false,
hidden: null as boolean | null,
search_index: '',
showFiltered: true,
spoilerHtml: '',