Put objects in inserted activties into the db.
This commit is contained in:
parent
40eb0e4c24
commit
6aa1523bb3
3 changed files with 10 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
|
||||
map = if map["object"] do
|
||||
object = Map.put_new_lazy(map["object"], "id", &generate_object_id/0)
|
||||
Repo.insert!(%Object{data: object})
|
||||
Map.put(map, "object", object)
|
||||
else
|
||||
map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue