updated comment component
This commit is contained in:
@@ -42,9 +42,6 @@ export const NoteComment = memo(function NoteComment({ event }: { event: any })
|
|||||||
if (tags[match][0] === 'p') {
|
if (tags[match][0] === 'p') {
|
||||||
// @-mentions
|
// @-mentions
|
||||||
return <UserMention key={match + i} pubkey={tags[match][1]} />;
|
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 {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import NoteMetadata from '@components/note/metadata';
|
import NoteMetadata from '@components/note/metadata';
|
||||||
import { ImagePreview } from '@components/note/preview/image';
|
import { ImagePreview } from '@components/note/preview/image';
|
||||||
import { VideoPreview } from '@components/note/preview/video';
|
import { VideoPreview } from '@components/note/preview/video';
|
||||||
|
import { NoteRepost } from '@components/note/repost';
|
||||||
import { UserLarge } from '@components/user/large';
|
import { UserLarge } from '@components/user/large';
|
||||||
import { UserMention } from '@components/user/mention';
|
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]} />;
|
return <UserMention key={match + i} pubkey={tags[match][1]} />;
|
||||||
} else if (tags[match][0] === 'e') {
|
} else if (tags[match][0] === 'e') {
|
||||||
// note-mentions
|
// note-mentions
|
||||||
return <p key={match + i}>note-{tags[match][1]}</p>;
|
return <NoteRepost key={match + i} id={tags[match][1]} />;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user