diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-28 20:03:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 20:03:13 -0500 |
commit | a95c03e280ca153ba4a98d6b81ff9d743d4adcaa (patch) | |
tree | d3a63bcc87d24ad4c8e6e3893be0b54aca12b553 /src/state/models/feeds/notifications.ts | |
parent | e68aa75429c2a0a495105f641361ee8fe22370f1 (diff) | |
download | voidsky-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/state/models/feeds/notifications.ts')
-rw-r--r-- | src/state/models/feeds/notifications.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/models/feeds/notifications.ts b/src/state/models/feeds/notifications.ts index 02f58819f..3ffd10b99 100644 --- a/src/state/models/feeds/notifications.ts +++ b/src/state/models/feeds/notifications.ts @@ -111,6 +111,10 @@ export class NotificationsFeedItemModel { addedInfo?.profileLabels || [], ), isMuted: this.author.viewer?.muted || addedInfo?.isMuted || false, + isBlocking: + !!this.author.viewer?.blocking || addedInfo?.isBlocking || false, + isBlockedBy: + !!this.author.viewer?.blockedBy || addedInfo?.isBlockedBy || false, } } |