forked from e621ng/e621ng
[Comments] Fix an error on the index page caused by hidden comments (#837)
This commit is contained in:
parent
b690d82adc
commit
09b46b0766
@ -1,4 +1,4 @@
|
|||||||
<% if comment.should_see?(CurrentUser.user) || (current_page?(:controller => "comments", :action => "show") && CurrentUser.id == comment.creator_id) %>
|
<% if comment.should_see?(CurrentUser.user) || (params[:controller] == "comments" && params[:action] == "show" && CurrentUser.id == comment.creator_id) %>
|
||||||
<article class="comment comment-post-grid <%= "below-threshold" if comment.below_threshold? %>" data-post-id="<%= comment.post_id %>"
|
<article class="comment comment-post-grid <%= "below-threshold" if comment.below_threshold? %>" data-post-id="<%= comment.post_id %>"
|
||||||
data-comment-id="<%= comment.id %>" data-score="<%= comment.score %>"
|
data-comment-id="<%= comment.id %>" data-score="<%= comment.score %>"
|
||||||
data-creator="<%= comment.creator&.name.downcase %>" data-is-sticky="<%= comment.is_sticky %>" data-creator-id="<%= comment.creator_id %>"
|
data-creator="<%= comment.creator&.name.downcase %>" data-is-sticky="<%= comment.is_sticky %>" data-creator-id="<%= comment.creator_id %>"
|
||||||
|
Loading…
Reference in New Issue
Block a user