Show if you hid the reply or not

This commit is contained in:
Eric Bailey
2024-08-09 18:02:59 -05:00
parent df6b592f28
commit 47dfa54ede
3 changed files with 30 additions and 13 deletions
+11 -9
View File
@@ -215,15 +215,17 @@ let PostThreadItemLoaded = ({
const isPostHiddenByThreadgate = threadgateRecord?.hiddenReplies?.includes(
post.uri,
)
const additionalPostAlerts: AppModerationCause[] = isPostHiddenByThreadgate
? [
{
type: 'reply-hidden',
source: {type: 'user'},
priority: 6,
},
]
: []
// TODO memoize
const additionalPostAlerts: AppModerationCause[] =
threadgateRecord && isPostHiddenByThreadgate
? [
{
type: 'reply-hidden',
source: {type: 'user', did: new AtUri(threadgateRecord.post).host},
priority: 6,
},
]
: []
const translatorUrl = getTranslatorLink(
record?.text || '',