updated comment component

This commit is contained in:
Ren Amamiya 2023-03-26 15:48:15 +07:00
parent fd2ddc4d2b
commit 5fcb1ef647
2 changed files with 2 additions and 4 deletions

View File

@ -42,9 +42,6 @@ export const NoteComment = memo(function NoteComment({ event }: { event: any })
if (tags[match][0] === 'p') {
// @-mentions
return <UserMention key={match + i} pubkey={tags[match][1]} />;
} else if (tags[match][0] === 'e') {
// note-mentions
return <NoteRepost key={match + i} id={tags[match][1]} />;
} else {
return;
}

View File

@ -1,6 +1,7 @@
import NoteMetadata from '@components/note/metadata';
import { ImagePreview } from '@components/note/preview/image';
import { VideoPreview } from '@components/note/preview/video';
import { NoteRepost } from '@components/note/repost';
import { UserLarge } from '@components/user/large';
import { UserMention } from '@components/user/mention';
@ -43,7 +44,7 @@ export const NoteExtend = memo(function NoteExtend({ event }: { event: any }) {
return <UserMention key={match + i} pubkey={tags[match][1]} />;
} else if (tags[match][0] === 'e') {
// note-mentions
return <p key={match + i}>note-{tags[match][1]}</p>;
return <NoteRepost key={match + i} id={tags[match][1]} />;
} else {
return;
}