about summary refs log tree commit diff
path: root/app/services/remove_status_service.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-10-21 22:05:58 -0500
committerFire Demon <firedemon@creature.cafe>2020-10-21 22:05:58 -0500
commitb1ce81006cf7e94214c8ed9abb65fdcdb260b1fc (patch)
treef3474beae362c2b5c01405be04793e01b1110e73 /app/services/remove_status_service.rb
parentfdb968b54d06c7ace6bf498361883b4c8c26fa6f (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.rb2
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?)