mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 18:21:37 +01:00
Allow VerifyLinkService to accept backlinks with differing case (#18320)
This commit is contained in:
parent
db01df2dda
commit
336c23336a
1 changed files with 1 additions and 1 deletions
|
@ -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 ")]')
|
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
|
true
|
||||||
elsif links.empty?
|
elsif links.empty?
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue