Bulk revert edits (bulk undone edits)

Hello,
We have a bot that does editting in the forum. Sometimes it does much bad edits, we would like to revert all of them and debug the bot and then start it again,
Is it possible to revert bulk edits by such user?

What kind of bot is this, and who wrote it? You?

2 Likes

Yes, I wrote the bot.
It’s a bot that does formating edits on posts by API.

That sounds like a good feature to add to your bot!

The best way to debug is to take a backup before the bot runs and restore the backup of it misbehaved. Failing that, you’ll need to find a way to select to posts that need reverting and then revert them.

2 Likes

Is there any way to revert them by API?

Yes! See How to reverse engineer the Discourse API

5 Likes