Removed local instance block on FetchLinkCardService

• Removed:
- local instance block on FetchLinkCardService
This commit is contained in:
mgabdev 2020-07-22 00:24:27 -05:00
parent ae5d892221
commit ec495fb3ed

View File

@ -90,8 +90,8 @@ class FetchLinkCardService < BaseService
end
def bad_url?(uri)
# Avoid local instance URLs and invalid URLs
uri.host.blank? || TagManager.instance.local_url?(uri.to_s) || !%w(http https).include?(uri.scheme)
# Avoid invalid URLs
uri.host.blank? || !%w(http https).include?(uri.scheme)
end
def mention_link?(a)