block scheduled status from frozen users (#30729)
This commit is contained in:
parent
683db3ab25
commit
2526b32ad3
2 changed files with 20 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue