Was reviewing MessageFilter code and noticed that in important case was missing - we allowed checks for truthiness of an item field, but not falsiness. This has been added and will appear in the repository shortly. So for instance to accept only private posts by a given author, you might use an accept rule such as

?item_private

and to only allow public posts to be accepted, use the new negated case

?!item_private
Follow

@mike such a simple idea and it's weird that there are not more projects doing this kind of thing with query parameters.

Here's my "documentation" for FedBOX where I use a similar schema:

man.sr.ht/~mariusor/go-activit

For find private items I use a slightly different approach based on the fact that in AP a public object as the AP Public NS as a recipient:

?to=!w3.org/ns/activitystreams#Publ

Typing this I realize I probably need to relax the rule to include also CC, BTo and BCC.

Sign in to participate in the conversation
Metalhead.club

Metalhead.club is a Mastodon instance hosted in Germany and powered by 100% green energy.