friends_helper.rb 174 Bytes
Newer Older
Yamagishi Kazutoshi's avatar
Yamagishi Kazutoshi committed
1 2
# frozen_string_literal: true

Eugen Rochko's avatar
Eugen Rochko committed
3
module FriendsHelper
4 5 6 7
  def mastodon_profile_url(uid)
    username, domain = uid.split('@')
    "https://#{domain}/users/#{username}"
  end
Eugen Rochko's avatar
Eugen Rochko committed
8
end