## 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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to