diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-10-21 22:05:58 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-10-21 22:05:58 -0500 |
commit | b1ce81006cf7e94214c8ed9abb65fdcdb260b1fc (patch) | |
tree | f3474beae362c2b5c01405be04793e01b1110e73 /app/services/remove_status_service.rb | |
parent | fdb968b54d06c7ace6bf498361883b4c8c26fa6f (diff) |
When a local user blocks another account, also defederate interactions between them
Diffstat (limited to 'app/services/remove_status_service.rb')
-rw-r--r-- | app/services/remove_status_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index c0055882d..4d07632d3 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -50,6 +50,8 @@ class RemoveStatusService < BaseService remove_from_remote_affected remove_from_remote_shared + @status.mentions.where(account_id: @options[:blocking]).destroy_all if @options[:blocking] + return unless @options[:unpublish] @status.update(published: false, expires_at: nil, local_only: @status.local?) |