"uri" => "tag:#{activity.data["id"]}:objectType=note",
"created_at" => created_at,
"retweeted_status" => retweeted_status,
- "statusnet_conversation_id" => conversation_id(announced_activity)
+ "statusnet_conversation_id" => conversation_id(announced_activity),
+ "external_url" => activity.data["id"]
}
end
"uri" => "tag:#{activity.data["id"]}:objectType=Favourite",
"created_at" => created_at,
"in_reply_to_status_id" => liked_activity.id,
+ "external_url" => activity.data["id"]
}
end
"is_post_verb" => false,
"created_at" => created_at,
"in_reply_to_status_id" => nil,
+ "external_url" => activity.data["id"]
}
end
"repeat_num" => announcement_count,
"favorited" => to_boolean(favorited),
"repeated" => to_boolean(repeated),
+ "external_url" => activity.data["id"]
}
end
id: 1,
data: %{
"type" => "Create",
+ "id" => "id",
"to" => [
User.ap_followers(user),
"https://www.w3.org/ns/activitystreams#Public",
"fave_num" => 5,
"repeat_num" => 3,
"favorited" => false,
- "repeated" => false
+ "repeated" => false,
+ "external_url" => activity.data["id"]
}
assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status