aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-11-15 18:58:13 +0100
committerRoger Braun <roger@rogerbraun.net>2017-11-15 18:58:39 +0100
commitced0d64d75831c68851d4deef9875343d9114eaa (patch)
treeba18c39916372c7aab56a11276d9bf529ff69d43 /lib
parent1cca544e206e8e7f38077fba6392c252803c13ec (diff)
downloadpleroma-ced0d64d75831c68851d4deef9875343d9114eaa.tar.gz
MastoAPI: Make attachment ids strings.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index d97b2acb4..38abdb35f 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -120,7 +120,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
<< hash_id::signed-32, _rest::binary >> = :crypto.hash(:md5, href)
%{
- id: attachment["id"] || hash_id,
+ id: to_string(attachment["id"] || hash_id),
url: href,
remote_url: href,
preview_url: href,