mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-06-29 18:11:34 +02:00
when expanding mentions in case p or e is not found then ..
they are mentioned as the id ( p prefixed with @ and e prefixed with #)
This commit is contained in:
@ -371,8 +371,28 @@ class EventData {
|
|||||||
return quote;
|
return quote;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String tag = "";
|
||||||
|
switch(tags[n][0]) {
|
||||||
|
case "p":
|
||||||
|
tag = "@";
|
||||||
|
break;
|
||||||
|
case "e":
|
||||||
|
tag = "#";
|
||||||
|
break;
|
||||||
|
case "%": // something else for future
|
||||||
|
tag = "%";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
tag = "@";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return tag+mentionedId;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mentionTag;
|
return mentionTag;
|
||||||
}
|
}
|
||||||
if( gDebug > 0) printWarning("In replaceMentions returning nothing");
|
if( gDebug > 0) printWarning("In replaceMentions returning nothing");
|
||||||
|
Reference in New Issue
Block a user