Revert post to a specific revision

I just pushed a commit that will allow Staff to revert a post to a specific revision.

“Revert” button will appear at the bottom of every revision, clicking on this button will revert the post to that specific revision.

Revert button will only be visible to staff, and reverting a post will create a new revision.

21 Likes

Cool! Does this remove all the revisions after the target revision number, or actually create a new version identical to the target version?

Nope.

Yes, that is exactly what it does. Creates a new version identical to the target version.

10 Likes

Very nice! Thanks! :thumbsup:

1 Like

Great new feature - thank you so much! :roller_coaster:

1 Like

Also, what about the author?

What about the ability to revert if the user has permission to edit the post? This could come in handy for accidental overwrites on a wiki post.

Can this feature be extended to Staff, not just Admins?

Already is.

Or so I believe based on the commit
https://github.com/discourse/discourse/blob/89248580dce1be67161b25c9155759bef598d099/app/assets/javascripts/discourse/controllers/history.js.es6#L92-L94

Edit: And I just confirmed it on my sandbox

5 Likes

This feature is only available for staff as of now.

I edited first post to make it clear that this feature is available for Staff.

5 Likes

Awesome. I’ve been wishing for this feature!

1 Like