mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-21 22:56:22 +00:00
fixup! feat: eliminar más actores
This commit is contained in:
parent
2370cf7310
commit
21401d93b6
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
# Algunes quedaron como genéricxs
|
||||
class RemoveActorModerations2 < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
actor_uris = ActivityPub::Activity.where(type: 'ActivityPub::Activity::Delete').distinct.pluck(Arel.sql("content->>'object'"))
|
||||
actor_uris = ActivityPub::Activity.unscope(:order).where(type: 'ActivityPub::Activity::Delete').distinct.pluck(Arel.sql("content->>'object'"))
|
||||
actor_ids = ActivityPub::Actor.where(uri: actor_uris).ids
|
||||
|
||||
ActorModeration.where(actor_id: actor_ids).remove_all!
|
||||
|
|
Loading…
Reference in a new issue