Don't show "You have already hidden this post" and "Post is already active" errors when disapproving a post. Just hide the post anyway regardless of whether we literally created a post disapproval record.
7 lines
201 B
Plaintext
7 lines
201 B
Plaintext
if ($("#c-posts #a-show").length) {
|
|
location.reload();
|
|
} else if ($("#c-modqueue").length) {
|
|
$("#c-modqueue #post-<%= @post_disapproval.post.id %>").hide();
|
|
Danbooru.notice("Post was hidden");
|
|
}
|