fix
This commit is contained in:
@@ -6,11 +6,8 @@ module PostSetPresenters
|
|||||||
|
|
||||||
def post_previews_html(template)
|
def post_previews_html(template)
|
||||||
html = ""
|
html = ""
|
||||||
is_empty = ::Post.with_timeout(500, false) do
|
|
||||||
posts.empty?
|
|
||||||
end
|
|
||||||
|
|
||||||
if is_empty
|
if posts.empty?
|
||||||
return template.render("post_sets/blank")
|
return template.render("post_sets/blank")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user