[openstreetmap/openstreetmap-website] feat: add social links and company to user api endpoint (PR #6452)
Moritz Stückler
notifications at github.com
Mon Oct 20 16:13:53 UTC 2025
@pReya commented on this pull request.
> @@ -4,6 +4,14 @@ xml.tag! "user", :id => user.id,
:display_name => user.display_name,
:account_created => user.created_at.xmlschema do
xml.tag! "description", user.description if user.description
+ xml.tag! "company", user.company if user.company
+ if user.social_links
Since other arrays seem to be returned as empty arrays, too (e.g. "roles"), I did the same thing, and just removed the check.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6452#discussion_r2445482912
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6452/review/3357094559 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251020/b80d0fe1/attachment.htm>
More information about the rails-dev
mailing list