5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2025-03-15 21:08:18 +00:00

Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl

This commit is contained in:
Sutty 2024-03-07 20:45:37 +00:00
commit 17baafa476

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
# 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_ids = ActivityPub::Actor.where(uri: actor_uris).ids
ActorModeration.where(actor_id: actor_ids).remove_all!
end
def down; end
end