keyword muting and local only tooting WIP

This commit is contained in:
beatrix-bitrot
2017-06-05 22:34:08 +00:00
parent c0a665865e
commit 93fc8aa14c
3 changed files with 14 additions and 2 deletions

View File

@ -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]