Merge pull request #4475 from nonamethanks/refactor_source_normalizing
Refactor source normalization
This commit is contained in:
@@ -162,6 +162,12 @@ module Sources
|
||||
artist_id_from_url || artist_id_from_page
|
||||
end
|
||||
|
||||
def normalize_for_source
|
||||
return if illust_id.blank?
|
||||
|
||||
"https://nijie.info/view.php?id=#{illust_id}"
|
||||
end
|
||||
|
||||
def page
|
||||
return nil if page_url.blank?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user