commit: 7331733d30ff69d657df9a06d923353ffaff5228
parent: b58b35bf5619bd3b4d89a224e3b032c230c01884
Author: Roger Braun <roger@rogerbraun.net>
Date: Tue, 12 Sep 2017 11:43:36 +0200
Use signed integer as attachment id.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -61,7 +61,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
true -> "unknown"
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,