Add workaround for YouTube Shorts links (#17869)
* Add workaround for YouTube Shorts links * Update link_details_extractor_spec.rb
This commit is contained in:
1 parent
9565b17d5d
commit
b58db8f12e
2 files changed
+9
-1
No files matched your search
@@ -208,7 +208,7 @@ class LinkDetailsExtractor
|
||||
end
|
||||
|
||||
def valid_url_or_nil(str, same_origin_only: false)
|
||||
return if str.blank?
|
||||
return if str.blank? || str == 'null'
|
||||
|
||||
url = @original_url + Addressable::URI.parse(str)
|
||||
|
||||
|
||||
Reference in new issue
Block a user