Global Feed Post Login
Replying to 33c68565...

Many of you asked me for solution for this kind of problem. But that will make it only gives all notes from "following", not the global section.

What do i mean is making the relay to only retrieve events from atleast 1 authors (0 authors on filter? No global feed or events returned. That's it).

And above will impact the following:

- relay will not give all new events that the relay got

- relay will only give events that requests for an individuals.

But could also solve the entire spam problem in massive scale.

Still not understand the solution?

I will made a code for relay software as an example in JS:

// We do not want to give clients all events that the relay got

// So if client did not request atleast 1 authors pubkey, Then reject

if (!filter.authors.length)

return ws.send(JSON.stringify([

"NOTICE", "Atleast 1 author pubkey was provided"

]));

33
33c68565... 2y ago

Or if wanted, Relays could either filter to pubkeys that want it is posts to be visible for everybody else. So that `!filter.authors.length` could be optional.

But how?

Use that `kind: 0` feature, put `public: true` on your profile metadata and done. Let the relay handle it.

Reply to this note

Please Login to reply.

Discussion

33
33c68565... 2y ago

But more better, if relays prefer to publish all kinds of notes by default, You could put `private: true` on your `kind: 0` metadata.

Thread collapsed