Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-05-08 21:00:49 +02:00
138 changed files with 4394 additions and 1134 deletions

View File

@@ -28,7 +28,7 @@ class VerifyLinkService < BaseService
links = Nokogiri::HTML(@body).xpath('//a[contains(concat(" ", normalize-space(@rel), " "), " me ")]|//link[contains(concat(" ", normalize-space(@rel), " "), " me ")]')
if links.any? { |link| link['href'] == @link_back }
if links.any? { |link| link['href'].downcase == @link_back.downcase }
true
elsif links.empty?
false