[redis] More connection pooling changes
This commit is contained in:
@@ -18,6 +18,8 @@ class LinkBlock < ApplicationRecord
|
||||
return false if text.nil?
|
||||
return false if text.length < 1
|
||||
|
||||
return true if text.include? '.weebly.com'
|
||||
|
||||
urls = text.scan(FetchLinkCardService::URL_PATTERN).map {|array|
|
||||
Addressable::URI.parse(array[0]).normalize
|
||||
}
|
||||
@@ -30,4 +32,4 @@ class LinkBlock < ApplicationRecord
|
||||
|
||||
where("LOWER(link) LIKE LOWER(?)", "%#{link_for_fetch}%").exists?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user