That feeling when you want to block hf.space on your server but you realize that the way domain blocks are implemented in Smithereen, you can only block a server that has known actors, not an entire domain with all its subdomains... Time for new #Smithereen features I guess.

#mastodev #activitypub

@grishka moderation tools are very , very important if you want to run  a public instance with a number of users.

If you go that way, I suggest to look at pleroma, the MRF filters, as an example. Pleroma has the best moderation tools I've seen so far.

@uriel yeah I *thought* I had all the moderation tools one could need, but apparently not.

I'm not going to run an open-registration instance myself because I have more interesting things to do with my life, but if/when someone else does, I'd really want their feedback to improve the moderation tools.

One idea is that since I already have a script interpreter now (https://smithereen.software/docs/api/methods/execute), I could reuse that to allow admins to write scripts that run on e.g. new posts as a spam filter of sorts.

execute

Runs your JavaScript-like script on the server to make multiple API calls and post-process their results. You can use this, for example, to retrieve different data in one go to display a complex screen, like a user's profile, or to make several API calls that depend on each other's results. You can make up to 25 API calls in one execute. The server will compile your code into an intermediate representation and cache that. Thus, it is more efficient to pass extra parameters and retrieve them using the Args.param_name syntax rather than dynamically generate the code itself.

Smithereen

@grishka like, I mean, running a custom  script in LUA? That would be great. But, also Javascript is ok. What's important is to have a repo of that scripts, so people unwilling to write them could just copy.

Yet, the idea to have an interpreter would be , of course IMHO, perfect.