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

@@ -20,7 +20,10 @@ class ReblogService < BaseService
reblog = account.statuses.create!(reblog: reblogged_status, text: '')
DistributionWorker.perform_async(reblog.id)
Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
unless /👁$/.match?(reblogged_status.content)
Pubsubhubbub::DistributionWorker.perform_async(reblog.stream_entry.id)
end
if reblogged_status.local?
NotifyService.new.call(reblog.reblog.account, reblog)