Skip to content
Snippets Groups Projects
Commit 1e269519 authored by abcang's avatar abcang Committed by Eugen Rochko
Browse files

Skip link-back check if body is nil (#9107)

parent 161aeadb
No related branches found
No related tags found
No related merge requests found
......@@ -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 ")]')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment