MastoAPI: Make attachment ids strings.
This commit is contained in:
parent
1cca544e20
commit
ced0d64d75
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue