diff options
author | abcang <abcang1015@gmail.com> | 2018-10-26 10:31:23 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-26 03:31:23 +0200 |
commit | 1e2695198a28e0bc15b32192f8e6abb0051f2159 (patch) | |
tree | 871cec3c3240be6ab6f9a2834d08c75a4fabff32 | |
parent | 161aeadbb4fcd08bc6a38acae9626f4124c78951 (diff) |
Skip link-back check if body is nil (#9107)
-rw-r--r-- | app/services/verify_link_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/verify_link_service.rb b/app/services/verify_link_service.rb index 3453b54c5..9f56249c7 100644 --- a/app/services/verify_link_service.rb +++ b/app/services/verify_link_service.rb @@ -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 ")]') |