X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1b20b5187ec1b150947089472a52c885cdd26ddb..a1a3b2c87e53c095d43bb9835590dc525122a062:/app/models/note.rb diff --git a/app/models/note.rb b/app/models/note.rb index d37b863e5..807ee9ec8 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -94,7 +94,7 @@ class Note < ApplicationRecord # Return the note's description, derived from the first comment def description if user_ip.nil? && user_id.nil? - comments.first.body + all_comments.first.body else RichText.new("text", super) end @@ -103,7 +103,7 @@ class Note < ApplicationRecord # Return the note's author object, derived from the first comment def author if user_ip.nil? && user_id.nil? - comments.first.author + all_comments.first.author else super end