X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e7bc943fe03dcd74666b6f26b3a831e06cac1d8..1f880528bd834bd59465b51ea8eccfe9fbd1715a:/lib/rich_text.rb?ds=sidebyside diff --git a/lib/rich_text.rb b/lib/rich_text.rb index 2b3e07d6a..1de7b882b 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -37,7 +37,7 @@ module RichText link_size += link.content.length end - link_proportion = link_size.to_f / doc.content.length.to_f + link_proportion = link_size.to_f / doc.content.length end spammy_phrases = SPAMMY_PHRASES.count do |phrase|