Source::URL: add profile_url method.
Add a method for converting a source URL into a profile URL. This will be used for normalizing profile URLs in artist entries. Also add the ability to parse a few more profile URL formats.
This commit is contained in:
@@ -93,4 +93,8 @@ class Source::URL::Nijie < Source::URL
|
||||
def full_image_url
|
||||
to_s.remove(%r{__rs_\w+/}i).gsub("http:", "https:") if image_url?
|
||||
end
|
||||
|
||||
def profile_url
|
||||
"https://nijie.info/members.php?id=#{user_id}" if user_id.present?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user