about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-01 20:20:29 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:17 -0500
commit3e57d03573d267e54da66effdd502b3372f4bbd9 (patch)
treec881cb16c098788aff4fe5dd505ba1d5660bdc50 /app/services
parentb69e14dc76cd3d4623253f3b4dc424c48f59c135 (diff)
[Privacy, Command Tags] Add advanced deletes
Diffstat (limited to 'app/services')
-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 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?