mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-07 22:16:46 +02:00
Update utils/textUtils.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -57,11 +57,11 @@ export function renderTextWithLinkedTags(content: string, eventTags: string[][])
|
||||
}
|
||||
|
||||
/**
|
||||
* Replace nostr:npub references with @username in content
|
||||
* @param content The text content that may contain nostr:npub references
|
||||
* Replace nostr:npub and nostr:nprofile references with @username in content
|
||||
* @param content The text content that may contain nostr:npub or nostr:nprofile references
|
||||
* @param eventTags The tags array from a Nostr event
|
||||
* @param userData Optional object containing profile data for referenced users
|
||||
* @returns Text with replaced nostr:npub references
|
||||
* @returns Text with replaced nostr:npub and nostr:nprofile references
|
||||
*/
|
||||
export function replaceNostrReferences(
|
||||
content: string,
|
||||
|
||||
Reference in New Issue
Block a user