mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01:00
fix for nip08 placeholder being accessed out of range
with a number like #[11]
This commit is contained in:
parent
32bc7d2bc0
commit
b2c16d3785
@ -204,7 +204,7 @@ class EventData {
|
||||
String eventId = tags[i][1];
|
||||
|
||||
// ignore this e tag if its mentioned in the body of the event
|
||||
String placeholder = nip08PlaceHolders[i];
|
||||
String placeholder = nip08PlaceHolders.length > i? nip08PlaceHolders[i]: "INVALIDPLACEHOLDER_SHOULDNOTEXIST";
|
||||
if( content.contains(placeholder)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user