diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-11-15 18:58:13 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-11-15 18:58:39 +0100 |
commit | ced0d64d75831c68851d4deef9875343d9114eaa (patch) | |
tree | ba18c39916372c7aab56a11276d9bf529ff69d43 /lib | |
parent | 1cca544e206e8e7f38077fba6392c252803c13ec (diff) | |
download | pleroma-ced0d64d75831c68851d4deef9875343d9114eaa.tar.gz |
MastoAPI: Make attachment ids strings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 2 |
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, |