diff options
author | beatrix-bitrot <beatrix.bitrot@gmail.com> | 2017-06-05 22:34:08 +0000 |
---|---|---|
committer | beatrix-bitrot <beatrix.bitrot@gmail.com> | 2017-06-26 02:19:21 +0000 |
commit | 93fc8aa14c914d03643197306c325becbaed2581 (patch) | |
tree | 1200351f7cb5ad71a19564838eb96656158a12b5 /app/lib | |
parent | c0a665865e5f06f45296e76bfef3790f8149b0ee (diff) |
keyword muting and local only tooting WIP
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/feed_manager.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb index 90a1441f2..1885eff26 100644 --- a/app/lib/feed_manager.rb +++ b/app/lib/feed_manager.rb @@ -95,6 +95,12 @@ class FeedManager end def filter_from_home?(status, receiver_id) + # extremely violent filtering code BEGIN + #filter_string = 'e' + #reggie = Regexp.new(filter_string) + #return true if reggie === status.content || reggie === status.spoiler_text + # extremely violent filtering code END + return true if status.reply? && status.in_reply_to_id.nil? check_for_mutes = [status.account_id] |