Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously
This commit is contained in:
@ -10,6 +10,8 @@ class NotifyService < BaseService
|
||||
|
||||
create_notification
|
||||
send_email if email_enabled?
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
return
|
||||
end
|
||||
|
||||
private
|
||||
|
@ -61,7 +61,7 @@ class ProcessFeedService < BaseService
|
||||
|
||||
status.save!
|
||||
|
||||
NotifyService.new.call(status.reblog.account, status) if status.reblog?
|
||||
NotifyService.new.call(status.reblog.account, status) if status.reblog? && status.reblog.account.local?
|
||||
Rails.logger.debug "Queuing remote status #{status.id} (#{id}) for distribution"
|
||||
DistributionWorker.perform_async(status.id)
|
||||
status
|
||||
|
Reference in New Issue
Block a user