re-enable nip-04 with more polish, prepare for nip-44
This commit is contained in:
@@ -25,6 +25,7 @@ export function TextNote({ event }: { event: NDKEvent }) {
|
||||
components={{
|
||||
del: ({ children }) => {
|
||||
const key = children[0] as string;
|
||||
if (!key) return;
|
||||
if (key.startsWith('pub') && key.length > 50 && key.length < 100)
|
||||
return <MentionUser pubkey={key.replace('pub-', '')} />;
|
||||
if (key.startsWith('tag')) return <Hashtag tag={key.replace('tag-', '')} />;
|
||||
|
||||
Reference in New Issue
Block a user