Replace Object.normalize(activity.data[object] with Object.normalize(acitivty) to benefit from preloading
This commit is contained in:
parent
20deff75f1
commit
d21d921def
6 changed files with 7 additions and 7 deletions
|
|
@ -84,7 +84,7 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
|
|||
def to_simple_form(%{data: %{"type" => "Create"}} = activity, user, with_author) do
|
||||
h = fn str -> [to_charlist(str)] end
|
||||
|
||||
object = Object.normalize(activity.data["object"])
|
||||
object = Object.normalize(activity)
|
||||
|
||||
updated_at = object.data["published"]
|
||||
inserted_at = object.data["published"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue