[openstreetmap/openstreetmap-website] Adds optional use of notes records (PR #5511)
Anton Khorev
notifications at github.com
Sun Jan 19 14:51:43 UTC 2025
@AntonKhorev commented on this pull request.
> def author_id
- comments.first.author_id
+ if user_ip.nil? && user_id.nil?
+ comments.first.author_id
+ else
+ user_id
+ end
end
If user_id is a true id of the user who created the note, it won't necessarily match `author.id`, see my comment for `description`. Attempts to fix that for `author` were made in the past but were rejected by the maintainers, see for example #3607.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5511#pullrequestreview-2561026988
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5511/review/2561026988 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250119/c72d74bf/attachment.htm>
More information about the rails-dev
mailing list