Comment: #url should use story's url, not path

This commit is contained in:
Carl Chenet 2017-05-23 13:32:28 +02:00
parent a3071c22b5
commit e255915723
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ class Comment < ActiveRecord::Base
end
def url
self.story.comments_path + "#c_#{self.short_id}"
self.story.comments_url + "#c_#{self.short_id}"
end
def vote_summary_for_user(u)