about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-12 12:12:33 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-12 12:12:33 -0600
commit9157a28b1abce283f50a536a6040cf9592ce0fc5 (patch)
treeee93d7a4df4c703f14e9a0a6957d37fb6d57341d /app/helpers
parent518b2ff788d067c92afe303370b1e1c4bb960a90 (diff)
strip mentions from normalized text
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/text_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/text_helper.rb b/app/helpers/text_helper.rb
index 50a7c248a..b60eee22d 100644
--- a/app/helpers/text_helper.rb
+++ b/app/helpers/text_helper.rb
@@ -15,6 +15,7 @@ module TextHelper
 
   def normalize_text(html)
     html.downcase
+      .gsub(Account::MENTION_RE, '')
       .gsub(/[ \t]*\302\240+[ \t]*/, ' ')
       .gsub(/  +/, ' ')
       .gsub(/\r\n?/, "\n")