5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-28 18:36:23 +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-18 18:47:55 +00:00
commit b2e30cf80e

View file

@ -7,7 +7,7 @@ class FixDuplicateObjects < ActiveRecord::Migration[6.1]
objects = ActivityPub::Object.where(uri: uri)
deleted_ids = objects[1..].map(&:delete).map(&:id)
ActivityPub.where(object_id: deleted_ids).update_all(object_id: object.first.id, updated_at: Time.now)
ActivityPub.where(object_id: deleted_ids).update_all(object_id: objects.first.id, updated_at: Time.now)
end
end