]> git.openstreetmap.org Git - rails.git/blobdiff - lib/osm.rb
Include autogenerated links when calculating the spam score
[rails.git] / 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|