From c88284cc932c3da1fff562762e771b79a935c704 Mon Sep 17 00:00:00 2001 From: "Luis M. Rodriguez-R" Date: Sun, 24 Nov 2024 22:09:07 +0300 Subject: [PATCH] Update wiki.rb --- app/models/name/wiki.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/name/wiki.rb b/app/models/name/wiki.rb index bbfb4a4..9ed7eaa 100644 --- a/app/models/name/wiki.rb +++ b/app/models/name/wiki.rb @@ -65,7 +65,7 @@ def check_wikispecies issues << 'missing page' else xml = Nokogiri::HTML.parse(doc) - if parent && parent == self + if parent && parent != self if xml.xpath("//a[@href='/wiki/#{parent.wiki_url_name}']").empty? issues << "parent not linked: #{parent.name}" end