posts: show takedown page for banned artists and posts.
Show a "This page has been removed because of a takedown request" error when an unauthorized user searches for a banned tag, or tries to view a banned post.
This commit is contained in:
@@ -146,6 +146,10 @@ module PostSets
|
||||
end
|
||||
end
|
||||
|
||||
def banned_artist?
|
||||
artist.present? && artist.is_banned? && !artist.policy(current_user).can_view_banned?
|
||||
end
|
||||
|
||||
def includes
|
||||
if show_votes?
|
||||
[:media_asset, :vote_by_current_user]
|
||||
|
||||
Reference in New Issue
Block a user