posts: fix paginator not appearing when all posts are hidden.

Fix the paginator not appearing when all posts on the page are hidden,
because of deleted posts, banned artists, censored tags, or non-safe
posts in safe mode. This prevented navigating to the next or previous
page.
This commit is contained in:
evazion
2022-01-14 21:51:59 -06:00
parent 00ebd2e13c
commit adc5bbf906
3 changed files with 27 additions and 37 deletions

View File

@@ -355,7 +355,7 @@ Post.initialize_excerpt = function() {
e.preventDefault();
});
if (!$(".post-preview").length && /Nobody here but us chickens/.test($("#posts").html())) {
if (!$(".post-preview").length && /No posts found/.test($("#posts").html())) {
$("#show-excerpt-link").click();
}
}