FIX: After deleting a post, staff can recover it
This commit is contained in:
parent
569e57f0a9
commit
b31e6e64fb
|
@ -168,7 +168,8 @@ const Post = RestModel.extend({
|
|||
this.setProperties({
|
||||
deleted_at: new Date(),
|
||||
deleted_by: deletedBy,
|
||||
can_delete: false
|
||||
can_delete: false,
|
||||
can_recover: true
|
||||
});
|
||||
} else {
|
||||
promise = cookAsync(I18n.t("post.deleted_by_author", {count: Discourse.SiteSettings.delete_removed_posts_after})).then(cooked => {
|
||||
|
|
Loading…
Reference in New Issue