5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-10-11 06:16:57 +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-14 18:43:06 +00:00
commit e2d6638141

View file

@ -4,7 +4,7 @@
class FixObjectTypeOnActivityPubs < ActiveRecord::Migration[6.1] class FixObjectTypeOnActivityPubs < ActiveRecord::Migration[6.1]
def up def up
ActivityPub::Object.where.not(type: 'ActivityPub::Object::Generic').find_each do |object| ActivityPub::Object.where.not(type: 'ActivityPub::Object::Generic').find_each do |object|
ActivityPub.where(object_id: object.id).update_all(type: object.type, updated_at: Time.now) ActivityPub.where(object_id: object.id).update_all(object_type: object.type, updated_at: Time.now)
end end
end end