updated_at = activity.data["published"]
inserted_at = activity.data["published"]
- in_reply_to = get_in_reply_to(activity.data)
+ _in_reply_to = get_in_reply_to(activity.data)
author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
mentions = activity.data["to"] |> get_mentions
updated_at = activity.data["published"]
inserted_at = activity.data["published"]
- in_reply_to = get_in_reply_to(activity.data)
+ _in_reply_to = get_in_reply_to(activity.data)
author = if with_author, do: [{:author, UserRepresenter.to_simple_form(user)}], else: []
retweeted_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
] ++ author
end
+ def to_simple_form(_, _, _), do: nil
+
def wrap_with_entry(simple_form) do
[{
:entry, [
], simple_form
}]
end
-
- def to_simple_form(_, _, _), do: nil
end