From a95c03e280ca153ba4a98d6b81ff9d743d4adcaa Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 28 Apr 2023 20:03:13 -0500 Subject: Implement blocks (#554) * Quick fix to prompt * Add blocked accounts screen * Add blocking tools to profile * Blur avis/banners of blocked users * Factor blocking state into moderation dsl * Filter post slices from the feed if any are hidden * Handle various block UIs * Filter in the client on blockedBy * Implement block list * Fix some copy * Bump deps * Fix lint --- src/lib/labeling/types.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/labeling/types.ts') diff --git a/src/lib/labeling/types.ts b/src/lib/labeling/types.ts index d4efb499a..20ecaa5b5 100644 --- a/src/lib/labeling/types.ts +++ b/src/lib/labeling/types.ts @@ -17,12 +17,16 @@ export interface PostLabelInfo { accountLabels: Label[] profileLabels: Label[] isMuted: boolean + isBlocking: boolean + isBlockedBy: boolean } export interface ProfileLabelInfo { accountLabels: Label[] profileLabels: Label[] isMuted: boolean + isBlocking: boolean + isBlockedBy: boolean } export enum ModerationBehaviorCode { -- cgit 1.4.1