mirror of
https://github.com/vishalxl/nostr_console.git
synced 2025-03-27 02:01:51 +01:00
specific spam prevention
This commit is contained in:
parent
576e544930
commit
255f664021
@ -1399,6 +1399,11 @@ class Store {
|
||||
// add the event to the main event store thats allChildEventsMap
|
||||
newEventsToProcess.forEach((newEvent) {
|
||||
|
||||
|
||||
if( newEvent.eventData.kind == 1 && newEvent.eventData.content.compareTo("Hello Nostr! :)") == 0 && newEvent.eventData.id.substring(0,2).compareTo("00") == 0) {
|
||||
return; // spam prevention
|
||||
}
|
||||
|
||||
if( allChildEventsMap.containsKey(newEvent.eventData.id)) {// don't process if the event is already present in the map
|
||||
return;
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
source ./configfile.cfg
|
||||
|
||||
# ./send_request.sh '["REQ","name",{"ids":["b10180"]}]'
|
||||
|
||||
for server in ${nostr_servers[@]};
|
||||
do
|
||||
>&2 echo -e "\n\n------------Sending $1 to $server---------------------------\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user