mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01: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:
parent
5071c1f1e6
commit
1bf4698ee4
@ -371,8 +371,28 @@ class EventData {
|
||||
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;
|
||||
}
|
||||
if( gDebug > 0) printWarning("In replaceMentions returning nothing");
|
||||
|
Loading…
x
Reference in New Issue
Block a user