[openstreetmap/openstreetmap-website] Add social profile links (PR #5439)

David Tsiklauri notifications at github.com
Thu May 15 08:14:37 UTC 2025


@nertc commented on this pull request.



> +#
+# Indexes
+#
+#  index_social_links_on_user_id  (user_id)
+#
+# Foreign Keys
+#
+#  fk_rails_...  (user_id => users.id)
+#
+
+class SocialLink < ApplicationRecord
+  belongs_to :user
+
+  validates :url, :format => { :with => %r{\Ahttps?://.+\z}, :message => :http_parse_error }
+
+  URL_PATTERNS = {

Mentioned website URLs were added to the parser.
Neither `Bootstrap Icons` nor `FontAwesome Icons` had icons related to the mentioned websites (other than Wikipedia). For `OpenGeofiction`, `Wikipedia`, `Wikidata` and `Wikivoyage`, I modified their logos SVG files to have one color (for consistent design and visual simplicity).
For `OSM Wiki` and `OpenHistoricalMap`, there were no simple SVG logos to modify them to have one color, so I added filter to match similar color palette.
For `OSM Community Forum`, there was no SVG logo containing "message" icons that is used on the website. I used OSM SVG logo and added filter to it in the same way as to `OSM Wiki`.

Screenshot 1 (`OpenHistoricalMap`, `OSM Community Forum`, `OSM Wiki`):
![image](https://github.com/user-attachments/assets/f98028e9-a792-42a4-a16b-fe0aa80a4e3d)

Screenshot 2:
![image](https://github.com/user-attachments/assets/052ba0f5-5586-4862-8770-a80e09f1530b)


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5439#discussion_r2090571628
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5439/review/2842724297 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250515/1e4bd7ea/attachment.htm>


More information about the rails-dev mailing list