case activity.data["type"] do
"Create" ->
%{
- id: id,
+ id: id |> to_string,
type: "mention",
created_at: created_at,
account: AccountView.render("account.json", %{user: actor}),
liked_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
%{
- id: id,
+ id: id |> to_string,
type: "favourite",
created_at: created_at,
account: AccountView.render("account.json", %{user: actor}),
announced_activity = Activity.get_create_activity_by_object_ap_id(activity.data["object"])
%{
- id: id,
+ id: id |> to_string,
type: "reblog",
created_at: created_at,
account: AccountView.render("account.json", %{user: actor}),
"Follow" ->
%{
- id: id,
+ id: id |> to_string,
type: "follow",
created_at: created_at,
account: AccountView.render("account.json", %{user: actor})