From 5fcb1ef6474d79ab8ba3104bdffa9fabf6e5aebe Mon Sep 17 00:00:00 2001 From: Ren Amamiya <123083837+reyamir@users.noreply.github.com> Date: Sun, 26 Mar 2023 15:48:15 +0700 Subject: [PATCH] updated comment component --- src/components/note/comment.tsx | 3 --- src/components/note/extend.tsx | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/note/comment.tsx b/src/components/note/comment.tsx index 023d66c0..263da935 100644 --- a/src/components/note/comment.tsx +++ b/src/components/note/comment.tsx @@ -42,9 +42,6 @@ export const NoteComment = memo(function NoteComment({ event }: { event: any }) if (tags[match][0] === 'p') { // @-mentions return ; - } else if (tags[match][0] === 'e') { - // note-mentions - return ; } else { return; } diff --git a/src/components/note/extend.tsx b/src/components/note/extend.tsx index 0528d4ae..ec0a6680 100644 --- a/src/components/note/extend.tsx +++ b/src/components/note/extend.tsx @@ -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 ; } else if (tags[match][0] === 'e') { // note-mentions - return

note-{tags[match][1]}

; + return ; } else { return; }