Why Nostr? What is Njump?
2024-09-10 22:22:51

M. Dilger on Nostr: I have just coded something that gets rid of R-plyGuy and R-plyGal quite well. I will ...

I have just coded something that gets rid of R-plyGuy and R-plyGal quite well. I will make it available on unstable soon. It is not the ultimate solution (is there any such thing?) but it works for these.

First I extended the filter.rhai script to have access to a variable 'name' which is the name of the user (from metadata). In my script I reject based on the user's name being "R-plyGuy" or "R-plyGal"

(I'm not putting the actual name in case someone else's spam filter aggressively filters that from contents).

This doesn't help yet because when the event comes in, we don't have the metadata to lookup the name so the event passes the original spam filtering.

So I added some settings to apply the spam filtering to various situations like the thread feed. The UI originally displays it briefly with a pubkey while it triggers the fetcher to go get the metadata. Once the metadata flows in, the next time it recomputes the feed the spam filtering now sees the name and strips out the event.

So you might see these flash on the screen, but not for long.

I have some additional work, then I'll push to unstable. Then I'll try to see if we can't get the master branch merged forward soon.
Author Public Key
npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c