[openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)
Tom Hughes
notifications at github.com
Sun Jan 19 15:05:53 UTC 2025
@tomhughes commented on this pull request.
> def description
- comments.first.body
+ if user_ip.nil? && user_id.nil?
+ comments.first.body
+ else
+ RichText.new("text", self[:description])
+ end
end
We could make it consistent by using `all_comments` instead but that obviously changes the behaviour from what we have now, but then that's going to be the case anyway when this transition is completed?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5511#discussion_r1921574801
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5511/review/2561029933 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250119/d99df196/attachment.htm>
More information about the rails-dev
mailing list