X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3d82c096235515cf42f16e9faaedcbfb8b777647..644184d254aacf0b7fc83d1b8c67c2a12230c833:/lib/rich_text.rb?ds=sidebyside diff --git a/lib/rich_text.rb b/lib/rich_text.rb index 8950c6888..a0c4d9c8d 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -44,9 +44,9 @@ module RichText doc.content.include?(phrase) end - [link_proportion - 0.2, 0.0].max * 200 + - link_count * 40 + - spammy_phrases * 40 + ([link_proportion - 0.2, 0.0].max * 200) + + (link_count * 40) + + (spammy_phrases * 40) end protected