Browse Source

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

master
abcang 6 years ago
committed by Eugen Rochko
parent
commit
1e2695198a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/verify_link_service.rb

+ 1
- 1
app/services/verify_link_service.rb View File

@ -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…
Cancel
Save