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

View file

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