5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 11:06:23 +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 = actor_ids =
ActivityPub.where(aasm_state: 'removed', object_type: 'ActivityPub::Object::Person').distinct.pluck(:actor_id) 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 end
def down; end def down; end