forked from e621ng/e621ng
Revert "[Posts] Show verified uploaders to everyone (#723)"
This reverts commit 2738ccfb62
.
This commit is contained in:
parent
708583b5e8
commit
726a361b00
@ -92,13 +92,13 @@ class PostsDecorator < ApplicationDecorator
|
||||
end
|
||||
|
||||
tooltip = "Rating: #{post.rating}\nID: #{post.id}\nDate: #{post.created_at}\nStatus: #{post.status}\nScore: #{post.score}"
|
||||
if CurrentUser.is_janitor? || post.uploader_linked_artists.any?
|
||||
if CurrentUser.is_janitor?
|
||||
tooltip += "\nUploader: #{post.uploader_name}"
|
||||
end
|
||||
if CurrentUser.is_janitor? && (post.is_flagged? || post.is_deleted?)
|
||||
flag = post.flags.order(id: :desc).first
|
||||
tooltip += "\nFlag Reason: #{flag&.reason}" if post.is_flagged?
|
||||
tooltip += "\nDel Reason: #{flag&.reason}" if post.is_deleted?
|
||||
if post.is_flagged? || post.is_deleted?
|
||||
flag = post.flags.order(id: :desc).first
|
||||
tooltip += "\nFlag Reason: #{flag&.reason}" if post.is_flagged?
|
||||
tooltip += "\nDel Reason: #{flag&.reason}" if post.is_deleted?
|
||||
end
|
||||
end
|
||||
tooltip += "\n\n#{post.tag_string}"
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
Posted: <%= link_to time_ago_in_words_tagged(post.created_at), posts_path(:tags => "date:#{post.created_at.to_date}"), :rel => "nofollow" %>
|
||||
<meta itemprop="uploadDate" content="<%= post.created_at.iso8601 %>">
|
||||
</li>
|
||||
<% if CurrentUser.is_janitor? || post.uploader_linked_artists.any? %>
|
||||
<% if CurrentUser.is_janitor? %>
|
||||
<li>
|
||||
Uploader: <%= link_to_user(post.uploader) %> <%= user_record_meta(post.uploader) if CurrentUser.is_janitor? %>
|
||||
<% if post.uploader_linked_artists.any? %>
|
||||
|
Loading…
Reference in New Issue
Block a user