posts: fix exception when post has source like 'https://www.twitter.com/username'.
`twitter.com` sources worked but `www.twitter.com` didn't. Also match the URL by class instead of by site name to ensure we match the expected class.
This commit is contained in:
@@ -5,7 +5,7 @@ module Sources
|
||||
module Strategies
|
||||
class Newgrounds < Base
|
||||
def match?
|
||||
parsed_url&.site_name == "Newgrounds"
|
||||
Source::URL::Newgrounds === parsed_url
|
||||
end
|
||||
|
||||
def image_urls
|
||||
|
||||
Reference in New Issue
Block a user