forked from mirrors/akkoma
Use signed integer as attachment id.
This commit is contained in:
parent
b58b35bf56
commit
7331733d30
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
true -> "unknown"
|
true -> "unknown"
|
||||||
end
|
end
|
||||||
|
|
||||||
<< hash_id::32, _rest::binary >> = :crypto.hash(:md5, href)
|
<< hash_id::signed-32, _rest::binary >> = :crypto.hash(:md5, href)
|
||||||
|
|
||||||
%{
|
%{
|
||||||
id: attachment["id"] || hash_id,
|
id: attachment["id"] || hash_id,
|
||||||
|
|
Loading…
Reference in a new issue