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

Minh Nguyễn notifications at github.com
Thu May 15 20:07:25 UTC 2025


@1ec5 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 = {

Thank you, this looks pretty good. Yeah, OHM definitely needs a more adaptable logo for situations like this, but that’s outside of the PR’s scope. 😉

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

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


More information about the rails-dev mailing list