sources: add image_url?, page_url?, and profile_url? methods.
Add methods to Source::URL for determining whether a URL is an image URL, a page URL, or a profile URL. Also add more source URL tests and fix various URL parsing bugs.
This commit is contained in:
@@ -48,7 +48,7 @@ class Source::URL::Fanbox < Source::URL
|
||||
|
||||
# http://www.pixiv.net/fanbox/member.php?user_id=3410642
|
||||
in "www.pixiv.net", "fanbox", "member.php" if params[:user_id].present?
|
||||
@user_id = user_id
|
||||
@user_id = params[:user_id]
|
||||
|
||||
# https://omu001.fanbox.cc/posts/39714
|
||||
# https://brllbrll.fanbox.cc/posts/626093 (R-18)
|
||||
|
||||
Reference in New Issue
Block a user