DisplayName in note replying to
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Martti Malmi 2023-12-07 14:16:42 +02:00
parent 55b536233c
commit d59eead30e

View File

@ -26,6 +26,7 @@ import HiddenNote from "./HiddenNote";
import { NoteProps } from "./Note"; import { NoteProps } from "./Note";
import { chainKey } from "@/Hooks/useThreadContext"; import { chainKey } from "@/Hooks/useThreadContext";
import { ProfileLink } from "@/Element/User/ProfileLink"; import { ProfileLink } from "@/Element/User/ProfileLink";
import DisplayName from "@/Element/User/DisplayName";
const TEXT_TRUNCATE_LENGTH = 400; const TEXT_TRUNCATE_LENGTH = 400;
@ -241,7 +242,7 @@ export function NoteInner(props: NoteProps) {
name: u?.name ?? shortNpub, name: u?.name ?? shortNpub,
link: ( link: (
<ProfileLink pubkey={pk} user={u}> <ProfileLink pubkey={pk} user={u}>
{u?.name ? `@${u.name}` : shortNpub} <DisplayName pubkey={pk} user={u} />{" "}
</ProfileLink> </ProfileLink>
), ),
}); });