Comment on Discussion: Long-term need for automation tools for moderation

<- View Parent
nutomic@lemmy.ml ⁨1⁩ ⁨week⁩ ago

To get new posts and comments for all known communities you only need to make regular requests to /api/v3/post/list?limit=50&sort=New&type_=All and /api/v3/comment/list?limit=50&sort=New&type_=All. Its not necessary to make separate requests for each community. The default rate limit allows 180 read requests per minute so you can comfortably poll this every second (in practice every 30s or so should be enough). If you miss an item (ie post or comment id was skipped) just load the following page.

The plugin system in 1.0 would be another option. It will still take some time until that is released, but there shouldnt be any reliability issues.

Youre right that federation solves these problems, but instead you get another problem of writing all this federation code and making sure it is compatible with different platforms. Lemmy’s federation code has around 12k lines so that is a lot. It seems much simpler to use the API for Lemmy, Piefed etc and write abstractions for common functionality.

Anyway this is my opinion. Its your project so in the end its your decision how to implement it.

source
Sort:hotnewtop