aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-10-31 14:51:41 +0100
committerRoger Braun <roger@rogerbraun.net>2017-10-31 14:51:41 +0100
commit968a546d4ac7d6b50af84aea71b3b37af8f2f669 (patch)
tree8ef4424283031bfb6184926eb2b89acc7cc3d706 /lib
parentf6372b245a2d65cf1c225adfe7bf822094cb4e1e (diff)
downloadpleroma-968a546d4ac7d6b50af84aea71b3b37af8f2f669.tar.gz
MastoAPI: Return id as string instead of integer.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index b3bb50880..48703e657 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -21,9 +21,9 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|> Enum.map(fn (user) -> AccountView.render("mention.json", %{user: user}) end)
%{
- id: activity.id,
+ id: to_string(activity.id),
uri: object,
- url: nil,
+ url: nil, # TODO: This might be wrong, check with mastodon.
account: AccountView.render("account.json", %{user: user}),
in_reply_to_id: nil,
in_reply_to_account_id: nil,
@@ -78,7 +78,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|> Enum.map(fn {name, url} -> %{ shortcode: name, url: url, static_url: url } end)
%{
- id: activity.id,
+ id: to_string(activity.id),
uri: object["id"],
url: object["external_url"] || object["id"],
account: AccountView.render("account.json", %{user: user}),