+ + {blocked.pubkeys.has(comment.pubkey) + ? "From an account you blocked." + : "A comment you blocked."} + + +
+ {replies} +diff --git a/apps/web/app/components/discussion/comment.tsx b/apps/web/app/components/discussion/comment.tsx index aac581f..8dc7ff9 100644 --- a/apps/web/app/components/discussion/comment.tsx +++ b/apps/web/app/components/discussion/comment.tsx @@ -4,6 +4,9 @@ import { authorPath, COMMENT_KIND, toNpub } from "@openspecs/nostr"; import { useEffect, useMemo, useState } from "react"; import { Link } from "react-router"; import { AuthorAvatar } from "~/components/author-avatar"; +import { CHROME } from "~/components/chrome"; +import { More } from "~/components/moderation/more"; +import { hidesComment, useBlocked } from "~/lib/blocked"; import { keyTextColor } from "~/lib/color"; import { NO_RESPONSE, type Response } from "~/lib/discussion"; import { mentionedKeys, mentionResolver } from "~/lib/mention"; @@ -78,6 +81,52 @@ export const CommentThread = ({ const npub = toNpub(comment.pubkey); const author = authors[comment.pubkey] ?? null; + const blocked = useBlocked(); + /** Opened by hand, for this visit: a block is not a lock. */ + const [shownAnyway, setShownAnyway] = useState(false); + + const replies = node.replies.length > 0 && ( +
+ + {blocked.pubkeys.has(comment.pubkey) + ? "From an account you blocked." + : "A comment you blocked."} + + +
+ {replies} +{line}
+{detail}
++ {nameless + ? "Sent without your name. Nobody can tie it to you, and it carries less weight for it." + : "A report is public, and it carries your name."} +
++ It goes to the people who run the relays. This site hides nothing on the strength of a + report: blocking is what does that, for you alone. +
+ + + +