# Revert post to a specific revision

**URL:** https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912
**Category:** Feature
**Tags:** feedback
**Created:** [March 11, 2016, 6:00pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912 "2016-03-11T18:00:15Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 11, 2016, 6:00pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/1 "2016-03-11T18:00:15Z")

</div>

I just pushed a [commit](https://github.com/discourse/discourse/commit/89248580dce1be67161b25c9155759bef598d099) that will allow Staff to revert a post to a specific revision.

 ![](https://global.discourse-cdn.com/meta/original/3X/b/0/b09edcf875c250b962800b601b4c5a1055e823be.png)

“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.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [March 11, 2016, 6:10pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/2 "2016-03-11T18:10:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 11, 2016, 6:21pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/3 "2016-03-11T18:21:00Z")

</div>

> [@downey](#):
>
> Does this remove all the revisions after the target revision number

Nope.

> [@downey](#):
>
> or actually create a new version identical to the target version

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

---

<div class="post-metadata">

### Author: ![mr8](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mr8](https://meta.discourse.org/u/mr8)
#### Post date: [March 11, 2016, 7:50pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/4 "2016-03-11T19:50:03Z")

</div>

Very nice! Thanks! 👍

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 11, 2016, 8:04pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/5 "2016-03-11T20:04:45Z")

</div>

Great new feature - thank you so much! 🎢

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [March 11, 2016, 8:26pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/6 "2016-03-11T20:26:08Z")

</div>

> [@techAPJ](#):
>
> will allow Admins to revert a post to a specific revision

Also, what about the author?

---

<div class="post-metadata">

### Author: ![mr8](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@mr8](https://meta.discourse.org/u/mr8)
#### Post date: [March 11, 2016, 8:44pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/7 "2016-03-11T20:44:52Z")

</div>

> [@downey](#):
>
> 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.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 11, 2016, 10:38pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/8 "2016-03-11T22:38:00Z")

</div>

> [@techAPJ](#):
>
> I just pushed a commit that will allow Admins to revert a post to a specific revision.

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

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [March 11, 2016, 11:09pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/9 "2016-03-11T23:09:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [March 12, 2016, 2:09am UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/10 "2016-03-12T02:09:44Z")

</div>

> [@downey](#):
>
> Also, what about the author?

This feature is only available for staff as of now.

> [@jomaxro](#):
>
> Can this feature be extended to Staff, not just Admins?

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

---

<div class="post-metadata">

### Author: ![lloyd\_tabb1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lloyd_tabb1/32/115966_2.png) [@lloyd\_tabb1](https://meta.discourse.org/u/lloyd_tabb1)
#### Post date: [March 13, 2016, 9:35pm UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/11 "2016-03-13T21:35:00Z")

</div>

Awesome. I’ve been wishing for this feature!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 21, 2016, 5:30am UTC](https://meta.discourse.org/t/revert-post-to-a-specific-revision/40912/12 "2016-10-21T05:30:45Z")

</div>


