diff --git a/src/components/moderation/ModerationDetailsDialog.tsx b/src/components/moderation/ModerationDetailsDialog.tsx
index 0073e64aa4..a79f930ad4 100644
--- a/src/components/moderation/ModerationDetailsDialog.tsx
+++ b/src/components/moderation/ModerationDetailsDialog.tsx
@@ -8,6 +8,7 @@ import {useModerationCauseDescription} from '#/lib/moderation/useModerationCause
import {makeProfileLink} from '#/lib/routes/links'
import {listUriToHref} from '#/lib/strings/url-helpers'
import {isNative} from '#/platform/detection'
+import {useSession} from '#/state/session'
import {atoms as a, useTheme} from '#/alf'
import * as Dialog from '#/components/Dialog'
import {Divider} from '#/components/Divider'
@@ -40,6 +41,7 @@ function ModerationDetailsDialogInner({
const t = useTheme()
const {_} = useLingui()
const desc = useModerationCauseDescription(modcause)
+ const {currentAccount} = useSession()
let name
let description
@@ -107,8 +109,13 @@ function ModerationDetailsDialogInner({
name = _(msg`Post Hidden by You`)
description = _(msg`You have hidden this post.`)
} else if (modcause.type === 'reply-hidden') {
- name = _(msg`Post Hidden by Thread Author`)
- description = _(msg`The author of this thread has hidden this post.`)
+ const isYou = currentAccount?.did === modcause.source.did
+ name = isYou
+ ? _(msg`Post Hidden by You`)
+ : _(msg`Post Hidden by Thread Author`)
+ description = isYou
+ ? _(msg`You hid this post.`)
+ : _(msg`The author of this thread has hidden this post.`)
} else if (modcause.type === 'label') {
name = desc.name
description = desc.description
@@ -123,12 +130,12 @@ function ModerationDetailsDialogInner({
{name}
-
+
{description}
{modcause.type === 'label' && (
- <>
+
{modcause.source.type === 'user' ? (
@@ -147,7 +154,7 @@ function ModerationDetailsDialogInner({
)}
- >
+
)}
{isNative && }
diff --git a/src/lib/moderation/useModerationCauseDescription.ts b/src/lib/moderation/useModerationCauseDescription.ts
index 4728e1e69c..0794fd6742 100644
--- a/src/lib/moderation/useModerationCauseDescription.ts
+++ b/src/lib/moderation/useModerationCauseDescription.ts
@@ -119,8 +119,8 @@ export function useModerationCauseDescription(
return {
icon: EyeSlash,
name: isYou
- ? _(msg`Post hidden by you`)
- : _(msg`Post hidden by thread author`),
+ ? _(msg`Post Hidden by You`)
+ : _(msg`Post Hidden by Thread Author`),
description: isYou
? _(msg`You hid this post.`)
: _(msg`The author of this thread has hidden this post.`),