diff options
author | shadowfacts <me@shadowfacts.net> | 2018-09-03 01:40:05 +0000 |
---|---|---|
committer | shadowfacts <me@shadowfacts.net> | 2018-09-03 01:40:05 +0000 |
commit | 2b2bd0e047c96085dda003f0ae11ddc05bbc8c12 (patch) | |
tree | eb6ff9fc8f41b65aff27ed3ec2363bda813ff796 /lib | |
parent | b7923aa304c23963fd51731579a54949fa639762 (diff) | |
download | pleroma-2b2bd0e047c96085dda003f0ae11ddc05bbc8c12.tar.gz |
Render notification IDs as strings, not numbers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index e0267f1dc..b3c234010 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -1033,7 +1033,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do 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}), @@ -1044,7 +1044,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do 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}), @@ -1055,7 +1055,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do 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}), @@ -1064,7 +1064,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do "Follow" -> %{ - id: id, + id: id |> to_string, type: "follow", created_at: created_at, account: AccountView.render("account.json", %{user: actor}) |