diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 69e6197e4..1fabde4f2 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -4,6 +4,10 @@ class PostPresenter < Presenter return "" end + unless Danbooru.config.can_user_see_post?(CurrentUser.user, post) + return "" + end + flags = [] flags << "pending" if post.is_pending? flags << "flagged" if post.is_flagged? diff --git a/app/views/forum_topics/show.html.erb b/app/views/forum_topics/show.html.erb index 7a20001cb..17c016284 100644 --- a/app/views/forum_topics/show.html.erb +++ b/app/views/forum_topics/show.html.erb @@ -17,7 +17,7 @@

<%= link_to "Reply »".html_safe, new_forum_post_path(:topic_id => @forum_topic.id) %>

-