FIX: After deleting a post, staff can recover it

This commit is contained in:
Robin Ward 2018-02-09 19:42:16 -05:00
parent 569e57f0a9
commit b31e6e64fb
1 changed files with 2 additions and 1 deletions

View File

@ -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 => {