0
0
Fork 0

block scheduled status from frozen users (#30729)

This commit is contained in:
Paulo Vilarinho 2024-11-20 16:06:41 -03:00 committed by GitHub
parent 683db3ab25
commit 2526b32ad3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 4 deletions

View file

@ -9,6 +9,8 @@ class PublishScheduledStatusWorker
scheduled_status = ScheduledStatus.find(scheduled_status_id)
scheduled_status.destroy!
return true if scheduled_status.account.user.disabled?
PostStatusService.new.call(
scheduled_status.account,
options_with_objects(scheduled_status.params.with_indifferent_access)