mirror of
https://github.com/mastodon/mastodon
synced 2024-11-24 15:16:19 +09:00
Skip link-back check if body is nil (#9107)
This commit is contained in:
parent
161aeadbb4
commit
1e2695198a
@ -25,7 +25,7 @@ class VerifyLinkService < BaseService
|
||||
end
|
||||
|
||||
def link_back_present?
|
||||
return false if @body.empty?
|
||||
return false if @body.blank?
|
||||
|
||||
links = Nokogiri::HTML(@body).xpath('//a[contains(concat(" ", normalize-space(@rel), " "), " me ")]|//link[contains(concat(" ", normalize-space(@rel), " "), " me ")]')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user