about summary refs log tree commit diff
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2018-10-26 10:31:23 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-10-26 03:31:23 +0200
commit1e2695198a28e0bc15b32192f8e6abb0051f2159 (patch)
tree871cec3c3240be6ab6f9a2834d08c75a4fabff32
parent161aeadbb4fcd08bc6a38acae9626f4124c78951 (diff)
Skip link-back check if body is nil (#9107)
-rw-r--r--app/services/verify_link_service.rb2
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 ")]')