5
0
Fork 0
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:
f 2024-03-07 17:21:03 -03:00
parent 5a7331e00e
commit b0b8e6877e
No known key found for this signature in database

View file

@ -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