diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index c8792f41..b7bc997c 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -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)