I operate a content mirroring instance that is intended to be read-only, where only a moderator bot is allowed to post and comment. However, I realized that comments can still be made on posts even when the community is set to “Only moderators can post”. Locking threads can block comments but it would also prevent the bot from posting comments, and there are a lot of threads to lock.

My naive solution is currently to ban anyone who comments, but is there any better way to create a read-only community without also blocking federation?

4 points
*

Would setting up another bot to auto delete any comments not made by your mirroring bot fix the problem? You could have the bot also send a PM explaining why their post was deleted.

permalink
report
reply
3 points

I consider these features critical on the backend so new server upgrades and hardware moves can be tested without letting users create posts or comments.

permalink
report
reply
2 points

Yes, it is possible

permalink
report
reply
1 point

There’s a checkbox for that when creating a new community.

permalink
report
reply
5 points

On 0.18.0, there is only the “Only moderators can post” checkbox which stops regular users from creating new posts, but it doesn’t stop them from commenting on posts. I’m looking for a way to prevent both (instead of deleting comments after they have been posted).

permalink
report
parent
reply
3 points

If your bot is already a moderator of the community couldn’t it lock the comments by default and when it needs to make a comment it could unlock it for that brief moment and relock it.

permalink
report
parent
reply

Lemmy Support

!lemmy_support@lemmy.ml

Create post

Support / questions about Lemmy.

Matrix Space: #lemmy-space

Community stats

  • 174

    Monthly active users

  • 839

    Posts

  • 4K

    Comments

Community moderators