fix mention in composer and improve error handling
This commit is contained in:
@@ -5,8 +5,6 @@ import { Event, parseReferences } from 'nostr-tools';
|
||||
import { RichContent } from '@utils/types';
|
||||
|
||||
export function parser(event: NDKEvent) {
|
||||
if (event.kind !== 1) return;
|
||||
|
||||
const references = parseReferences(event as unknown as Event);
|
||||
const urls = getUrls(event.content as unknown as string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user