about summary refs log tree commit diff
path: root/app/workers/scheduler/scheduled_statuses_scheduler.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-01-27 17:26:53 +0100
committerGitHub <noreply@github.com>2020-01-27 17:26:53 +0100
commit67b8af34b3df55ba74a53af731f275d0a4c6d9f8 (patch)
treed1f2420e0ea7cea72ea8032ce005c39c36f38a43 /app/workers/scheduler/scheduled_statuses_scheduler.rb
parent8924743349ec5ce37cd949445e071c14968ec2ec (diff)
parentcf230d551f3081115402f74d4326a2682f27fedc (diff)
Merge pull request #1271 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers/scheduler/scheduled_statuses_scheduler.rb')
-rw-r--r--app/workers/scheduler/scheduled_statuses_scheduler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/scheduler/scheduled_statuses_scheduler.rb b/app/workers/scheduler/scheduled_statuses_scheduler.rb
index 4262f1d01..9cfe949de 100644
--- a/app/workers/scheduler/scheduled_statuses_scheduler.rb
+++ b/app/workers/scheduler/scheduled_statuses_scheduler.rb
@@ -34,7 +34,7 @@ class Scheduler::ScheduledStatusesScheduler
   end
 
   def unpublish_expired_announcements!
-    expired_announcements.in_batches.update_all(published: false)
+    expired_announcements.in_batches.update_all(published: false, scheduled_at: nil)
   end
 
   def expired_announcements