What is Nostr?
/ y₿
npub18qk…cgr6
2024-09-10 22:38:01

y₿ on Nostr: #蹃驼 不驮垃圾! ...

#蹃驼 不驮垃圾!

设置一个“污点”标记笔记对象,中继统计“污点”对象的计数和标记源数量,标记源多且点数也多,即代表众客户端都标记了该笔记是“垃圾事件”,中继应予以过滤。

#nostr
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
npub18qkk0mr2x8wg6rzmxzvh2wsqgsnp5u8xjj4d6j0ttr7w22wtxzys32cgr6