[openstreetmap/openstreetmap-website] Add Codeberg social link icon and URL pattern support (#6814) (PR #6855)
Arpan Mukherjee
notifications at github.com
Tue Mar 3 18:43:23 UTC 2026
## Description
Adds support for Codeberg profile links.
### Changes
- Add Codeberg SVG icon to `social_link_icons`
- Add URL detection pattern in `SocialLink` model
- Add corresponding unit test for platform parsing
## How has this been tested?
Added a unit test in `social_link_test.rb` to verify that:
- The platform is detected as `"codeberg"`
- The username is correctly parsed from the URL
Closes #6813
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6855
-- Commit Summary --
* Add Codeberg social link icon and URL pattern support issue #6814
* Simplify Codeberg SVG to remove gradients and inline styles
* Fix RuboCop indentation and whitespace
* Remove accidental file
-- File Changes --
A app/assets/images/social_link_icons/codeberg.svg (16)
M app/models/social_link.rb (1)
M test/models/social_link_test.rb (9)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6855.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6855.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6855
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6855 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260303/99080447/attachment-0001.htm>
More information about the rails-dev
mailing list