MastoAPI: Make attachment ids strings.

This commit is contained in:
Roger Braun 2017-11-15 18:58:13 +01:00
commit ced0d64d75
2 changed files with 3 additions and 3 deletions

View file

@ -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,