about summary refs log tree commit diff
path: root/src/lib/labeling/types.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-04-28 20:03:13 -0500
committerGitHub <noreply@github.com>2023-04-28 20:03:13 -0500
commita95c03e280ca153ba4a98d6b81ff9d743d4adcaa (patch)
treed3a63bcc87d24ad4c8e6e3893be0b54aca12b553 /src/lib/labeling/types.ts
parente68aa75429c2a0a495105f641361ee8fe22370f1 (diff)
downloadvoidsky-a95c03e280ca153ba4a98d6b81ff9d743d4adcaa.tar.zst
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
Diffstat (limited to 'src/lib/labeling/types.ts')
-rw-r--r--src/lib/labeling/types.ts4
1 files changed, 4 insertions, 0 deletions
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 {