Removed local instance block on FetchLinkCardService
• Removed: - local instance block on FetchLinkCardService
This commit is contained in:
parent
ae5d892221
commit
ec495fb3ed
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user