From 7331733d30ff69d657df9a06d923353ffaff5228 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 12 Sep 2017 11:43:36 +0200 Subject: [PATCH] Use signed integer as attachment id. --- lib/pleroma/web/mastodon_api/views/status_view.ex | 2 +- 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 index bf9862419..895ab3d50 100644 --- 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, -- 2.45.2