mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 11:56:21 +00:00
feat: actualizar el tipo también
This commit is contained in:
parent
732012e14b
commit
34e63ff2dc
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue