mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 04:46:22 +00:00
fixup! feat: cuando une actore es eliminade, hay que eliminar sus estados de moderación
This commit is contained in:
parent
5a7331e00e
commit
b0b8e6877e
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class RemoveActorModerations < ActiveRecord::Migration[6.1]
|
|||
actor_ids =
|
||||
ActivityPub.where(aasm_state: 'removed', object_type: 'ActivityPub::Object::Person').distinct.pluck(:actor_id)
|
||||
|
||||
ActorModeration.where(id: actor_ids).remove_all!
|
||||
ActorModeration.where(actor_id: actor_ids).remove_all!
|
||||
end
|
||||
|
||||
def down; end
|
||||
|
|
Loading…
Reference in a new issue