diff options
author | David Yip <yipdw@member.fsf.org> | 2017-12-03 21:49:55 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-02-10 10:36:15 -0600 |
commit | 53c86b29f05049d77d17a35a0ca6287174431783 (patch) | |
tree | f2fbf88d4e16cd40da7eed04fc4e7f67dfe9ae9d /app/models/glitch | |
parent | d263e3bc2de720f4e6749cf4a8f2074427b65d07 (diff) |
Glitch::FilterHelper -> Glitch::KeywordMuteHelper. #234.
The class helps out with keyword mutes, not just some general concept of "filtering".
Diffstat (limited to 'app/models/glitch')
-rw-r--r-- | app/models/glitch/keyword_mute_helper.rb (renamed from app/models/glitch/filter_helper.rb) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/glitch/filter_helper.rb b/app/models/glitch/keyword_mute_helper.rb index 11be877c1..1b8c64e4e 100644 --- a/app/models/glitch/filter_helper.rb +++ b/app/models/glitch/keyword_mute_helper.rb @@ -1,6 +1,6 @@ require 'htmlentities' -class Glitch::FilterHelper +class Glitch::KeywordMuteHelper include ActionView::Helpers::SanitizeHelper attr_reader :text_matcher @@ -26,6 +26,6 @@ class Glitch::FilterHelper end def prepare_text(text) - entity_decoder.decode(strip_tags(text)) + entity_decoder.decode(strip_tags(text)).tap { |x| puts x } end end |