Skip to content

Commit

Permalink
Don't serve commenting js to visitors who aren't logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Jan 30, 2018
1 parent 4603cae commit 925bdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/stories/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<ol class="comments comments1">
<% if !@story.is_gone? && !@story.previewing %>
<li class="comments_subtree"><%= render "comments/commentbox", :comment => @comment %></li>
<script>autosize($("#comment")[0]);</script>
<% if @user %><script>autosize($("#comment")[0]);</script><% end %>
<% end %>

<% comments_by_parent = @comments.group_by(&:parent_comment_id) %>
Expand Down

0 comments on commit 925bdc2

Please sign in to comment.