We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc6bb6 commit 84ab204Copy full SHA for 84ab204
app/views/content/display/_favorite_control.html.erb
@@ -8,7 +8,7 @@
8
end
9
%>
10
11
-<% if content.persisted? && user_signed_in? && content.user == current_user %>
+<% if content.persisted? && user_signed_in? && content.user_id == current_user.try(:id) %>
12
<i class="material-icons right yellow-text favorite-button tooltipped"
13
data-tooltip="<%= action %> this page"
14
data-content-id="<%= content.id %>"
0 commit comments