+ def to_map(%Activity{data: %{"type" => "Follow"}} = activity, %{user: user} = opts) do
+ %{
+ "id" => activity.id,
+ "user" => UserRepresenter.to_map(user, opts),
+ "attentions" => [],
+ "statusnet_html" => "", # TODO: add summary
+ "text" => "",
+ "is_local" => true,
+ "is_post_verb" => false,
+ "created_at" => get_in(activity.data, ["published"]),
+ "in_reply_to_status_id" => nil,
+ }
+ end
+