Skip to content

Commit 8c1a8b2

Browse files
committed
skip a couple queries multiplicative on profile
1 parent dc83352 commit 8c1a8b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/share_comments/_show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<span class="timestamp">
2525
<%= time_ago_in_words comment.created_at %> ago
2626

27-
<% if user_signed_in? && (share.user == current_user || comment.user == current_user) %>
27+
<% if user_signed_in? && (share.user_id == current_user.id || comment.user_id == current_user.id) %>
2828
<a class='dropdown-trigger right' href='#' data-target='dropdown-comment-<%= comment.id %>'>
2929
<i class="material-icons">more_vert</i>
3030
</a>

0 commit comments

Comments
 (0)