removed small image support
This commit is contained in:
@@ -47,13 +47,6 @@ class PostPresenter < Presenter
|
||||
PostPresenter.preview(@post)
|
||||
end
|
||||
|
||||
def medium_image_html(template, options = {})
|
||||
return "" if @post.is_deleted? && !CurrentUser.user.is_janitor?
|
||||
return "" if !Danbooru.config.can_user_see_post?(CurrentUser.user, @post)
|
||||
|
||||
template.render("posts/partials/show/medium_image", :post => @post)
|
||||
end
|
||||
|
||||
def image_html(template)
|
||||
return template.content_tag("p", "This image was deleted.") if @post.is_deleted? && !CurrentUser.user.is_janitor?
|
||||
return template.content_tag("p", "You need a privileged account to see this image.") if !Danbooru.config.can_user_see_post?(CurrentUser.user, @post)
|
||||
|
||||
Reference in New Issue
Block a user