Files
danbooru/app/presenters/post_set_presenters/wiki_page.rb
r888888888 3657cacd17 * post keeper is calculated synchronously
* add fallback mechanism in case archive service is not up
* pass along most recently added tags to any keeper calculation
2018-03-08 16:00:44 -08:00

18 lines
363 B
Ruby

module PostSetPresenters
class WikiPage < PostSetPresenters::Post
def posts
@post_set.posts
rescue ActiveRecord::StatementInvalid, PG::Error
[]
end
def post_previews_html(template)
result = super(template)
if result =~ /Nobody here but us chickens/
result = ""
end
result.html_safe
end
end
end