mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-28 22:46:22 +00:00
Merge branch 'issue-15109-1' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
b2e30cf80e
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class FixDuplicateObjects < ActiveRecord::Migration[6.1]
|
||||||
objects = ActivityPub::Object.where(uri: uri)
|
objects = ActivityPub::Object.where(uri: uri)
|
||||||
deleted_ids = objects[1..].map(&:delete).map(&:id)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue