Include autogenerated links when calculating the spam score
authorTom Hughes <tom@compton.nu>
Sat, 21 Jan 2012 15:59:27 +0000 (15:59 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 21 Jan 2012 15:59:27 +0000 (15:59 +0000)
lib/osm.rb

index dd62d6620c7ca4f06eb7f726ba962eb0a39e0241..c4781ca417e7b828b382e42b057f409c6f247809 100644 (file)
@@ -517,7 +517,7 @@ module OSM
     link_count = 0
     link_size = 0
 
-    doc = Nokogiri::HTML(text)
+    doc = Nokogiri::HTML(Rinku.auto_link(text, :urls))
 
     if doc.content.length > 0
       doc.xpath("//a").each do |link|