umm-maybe / fediautomod

Content moderation support bot for the Fediverse (Mastodon etc.)
MIT License
6 stars 1 forks source link

Does StreamListener on Local timeline work for unlisted posts? #5

Open stedn opened 1 year ago

stedn commented 1 year ago

https://github.com/umm-maybe/fediautomod/blob/7c6bbe3b42a7acc0b53e9d81baf3b5d459ae4d85/automod.py#L72

I believe based on the doc here that .stream_local() only finds public statuses and won't pickup unlisted posts. and I think it's often the case that trolls and harassers will use unlisted replies so that their abuse doesn't end up in the public firehose.

I had actually been playing around with this on friday and implemented a rather cumbersome workaround that compiled a list of all the recent posts from the local timeline and then checked, .status_context(post_id)['descendants'] on them periodically to see if anyone had added a new reply. It isn't ideal, but you might think about that in a future update.