Bluesky app fork with some witchin' additions 💫

clarify in content hider if label is on overall account (#9264)

* clarify in content hider if label is on overall account

* fix bool typo

* Update src/components/moderation/ContentHider.tsx

Co-authored-by: Samuel Newman <mozzius@protonmail.com>

* rename variable for clarity

---------

Co-authored-by: Samuel Newman <mozzius@protonmail.com>

authored by bnewbold.net

Samuel Newman and committed by
GitHub
28e132ae 25a2a2c7

+8 -1
+6 -1
src/components/moderation/ContentHider.tsx
··· 85 85 blur.type !== 'label' || 86 86 (blur.type === 'label' && blur.source.type !== 'user') 87 87 ) { 88 - return desc.name 88 + if (desc.isSubjectAccount) { 89 + return _(msg`${desc.name} (Account)`) 90 + } else { 91 + return desc.name 92 + } 89 93 } 90 94 91 95 let hasAdultContentLabel = false ··· 127 131 modui?.blurs, 128 132 blur, 129 133 desc.name, 134 + desc.isSubjectAccount, 130 135 labelDefs, 131 136 i18n.locale, 132 137 globalLabelStrings,
+2
src/lib/moderation/useModerationCauseDescription.ts
··· 28 28 sourceType?: ModerationCauseSource['type'] 29 29 sourceAvi?: string 30 30 sourceDid?: string 31 + isSubjectAccount?: boolean 31 32 } 32 33 33 34 export function useModerationCauseDescription( ··· 162 163 sourceType: cause.source.type, 163 164 sourceAvi: labeler?.creator.avatar, 164 165 sourceDid: cause.label.src, 166 + isSubjectAccount: cause.label.uri.startsWith('did:'), 165 167 } 166 168 } 167 169 // should never happen