@pfefferle I like this idea.

Unfortunately status.created only triggers on local posts, which is good if you want to process your instance's posts, but you cannot filter incoming posts for spam.

github.com/mastodon/mastodon/p