jb55 on Nostr: query to filter spam from strangers: ``` ["REQ","thread", ...
query to filter spam from strangers:
```
["REQ","thread",
{"ids":["0000"],"#e":[thread_id]},
{"authors":[thread_authors_friends], "#e":[thread_id]}
]
```
Where 0000 is determined from the integer pow difficulty on the posters profile or thread (needed so clients know what pow to do if the client knows they are a stranger when replying).
Whats nice about this is that its a configurable client thing, its not some exclusionary default at the relay level like fixed pow requirements.
#nostr #spam
Published at
2022-10-22 12:37:59Event JSON
{
"id": "518a5b1d7ceade293bc62c534e51bc581333feb466d21f5cdb5531ce5ac2548c",
"pubkey": "32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245",
"created_at": 1666435079,
"kind": 1,
"tags": [
[
"t",
"e"
],
[
"t",
"e"
],
[
"t",
"nostr"
],
[
"t",
"spam"
]
],
"content": "query to filter spam from strangers:\n\n```\n[\"REQ\",\"thread\",\n{\"ids\":[\"0000\"],\"#e\":[thread_id]},\n{\"authors\":[thread_authors_friends], \"#e\":[thread_id]}\n]\n```\n\nWhere 0000 is determined from the integer pow difficulty on the posters profile or thread (needed so clients know what pow to do if the client knows they are a stranger when replying).\n\nWhats nice about this is that its a configurable client thing, its not some exclusionary default at the relay level like fixed pow requirements.\n\n#nostr #spam",
"sig": "4cb238458e2f25639457780e90dcf1762acf0bc1997f7bac982dfe389f404a2ecf5ca522e1d15b9e6412548e380f60f74daf9f0c8e2ea366bc142f4885f9d8d8"
}