aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-09-12 11:43:36 +0200
committerRoger Braun <roger@rogerbraun.net>2017-09-12 11:43:36 +0200
commit7331733d30ff69d657df9a06d923353ffaff5228 (patch)
treec3b4479aa2ce583cd72ba3bc279c3415dca9acb2 /lib
parentb58b35bf5619bd3b4d89a224e3b032c230c01884 (diff)
downloadpleroma-7331733d30ff69d657df9a06d923353ffaff5228.tar.gz
Use signed integer as attachment id.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
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,