批量回退编辑(批量撤销编辑)

你好,
我们有一个在论坛中进行编辑的机器人。有时它会进行大量错误的编辑,我们希望能够撤销所有这些编辑,调试机器人,然后再重新启动它。
请问是否可以批量撤销该用户的所有编辑?

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

2 个赞

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 个赞

Is there any way to revert them by API?

Yes! See How to reverse engineer the Discourse API

5 个赞