mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
fix: remove unused content parameter
Mark content parameter as unused with underscore prefix since the function is a placeholder for future enhancement.
This commit is contained in:
@@ -177,13 +177,10 @@ export function buildThreadTags(
|
||||
* @param content - Message content with nostr:npub... mentions
|
||||
* @returns Array of pubkeys mentioned in content
|
||||
*/
|
||||
export function extractMentionsFromContent(content: string): string[] {
|
||||
const mentionRegex = /nostr:npub1[a-z0-9]{58}/g;
|
||||
const matches = content.match(mentionRegex) || [];
|
||||
|
||||
export function extractMentionsFromContent(_content: string): string[] {
|
||||
const pubkeys = new Set<string>();
|
||||
|
||||
// TODO: decode npub to pubkey from matches
|
||||
// TODO: decode npub to pubkey from content
|
||||
// The MentionEditor already handles encoding, so we can extract from tags instead
|
||||
// This function is a placeholder for future enhancement
|
||||
|
||||
|
||||
Reference in New Issue
Block a user