aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn <git.pleroma.social@hacktivis.me>2018-09-03 02:03:51 +0000
committerHaelwenn <git.pleroma.social@hacktivis.me>2018-09-03 02:03:51 +0000
commit072e965015698a3198242aad3ad969a696b8f03e (patch)
tree39be9d05b2c036b0620d130cb6e24f551a3448e4
parentb7923aa304c23963fd51731579a54949fa639762 (diff)
parent35515cfa66f39d618be5702137d296b7bc25b65e (diff)
downloadpleroma-072e965015698a3198242aad3ad969a696b8f03e.tar.gz
Merge branch 'patch-2' into 'develop'
Render notification IDs as strings, not numbers See merge request pleroma/pleroma!325
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex2
1 files changed, 2 insertions, 0 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..8279db93e 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -1030,6 +1030,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
NaiveDateTime.to_iso8601(created_at)
|> String.replace(~r/(\.\d+)?$/, ".000Z", global: false)
+ id = id |> to_string
+
case activity.data["type"] do
"Create" ->
%{