X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fmastodon_api%2Fviews%2Fstatus_view.ex;h=bf9862419c0a5ebc29f66127aabb037011aa9735;hb=b58b35bf5619bd3b4d89a224e3b032c230c01884;hp=686ffd29de26e6d4db5f2c6c554095ff163f591d;hpb=fc10875895abd9add5a7834c4b5a64cc5b9401f8;p=akkoma diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 686ffd29d..bf9862419 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -61,8 +61,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do true -> "unknown" end + << hash_id::32, _rest::binary >> = :crypto.hash(:md5, href) + %{ - id: attachment["uuid"], + id: attachment["id"] || hash_id, url: href, remote_url: href, preview_url: href,