alias Pleroma.Web.OStatus.UserRepresenter
require Logger
- defp get_in_reply_to(%{"object" => %{ "inReplyTo" => in_reply_to}}) do
+ defp get_in_reply_to(%{"object" => %{"inReplyTo" => in_reply_to}}) do
[{:"thr:in-reply-to", [ref: to_charlist(in_reply_to)], []}]
end
{:"ostatus:conversation", [], h.(activity.data["context"])},
{:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []},
{:link, [rel: 'self', type: ['application/atom+xml'], href: h.(activity.data["id"])], []},
- {:"thr:in-reply-to", [ref: to_charlist(activity.data["object"])], []},
{:"activity:object", retweeted_xml}
] ++ mentions ++ author
end
}]
end
- def to_simple_form(_,_,_), do: nil
+ def to_simple_form(_, _, _), do: nil
end