From: Roger Braun Date: Tue, 12 Sep 2017 09:43:36 +0000 (+0200) Subject: Use signed integer as attachment id. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7331733d30ff69d657df9a06d923353ffaff5228;p=akkoma Use signed integer as attachment id. --- 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,