From 3e57d03573d267e54da66effdd502b3372f4bbd9 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 1 Aug 2020 20:20:29 -0500 Subject: [Privacy, Command Tags] Add advanced deletes --- app/services/remove_status_service.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/services') diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb index 6fd860628..4d3dc13db 100644 --- a/app/services/remove_status_service.rb +++ b/app/services/remove_status_service.rb @@ -19,6 +19,8 @@ class RemoveStatusService < BaseService @reblogs = status.reblogs.includes(:account).to_a @options = options + return unless status.published? || @options[:unpublished] + RedisLock.acquire(lock_options) do |lock| if lock.acquired? remove_from_self if status.account.local? -- cgit