5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 14:56:22 +00:00

feat: actualizar el tipo también

This commit is contained in:
f 2024-02-21 14:07:11 -03:00
parent 732012e14b
commit 34e63ff2dc
No known key found for this signature in database

View file

@ -17,7 +17,9 @@ class ActivityPub
return unless response.ok?
return unless response.miss?
object.update(content: FastJsonparser.parse(response.body))
content = FastJsonparser.parse(response.body)
object.update(content: content, type: ActivityPub::Object.type_from(content).name)
end
end
end