logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 4a32b584e148a5625a983e0932f2a3e16fdbbf30
parent 9838790a7d14e72449af3ae53daf3df30fd1aba0
Author: Lain Soykaf <lain@lain.com>
Date:   Thu, 15 Dec 2022 18:02:33 -0500

StatusView: Fix warning

Diffstat:

Mlib/pleroma/web/mastodon_api/views/status_view.ex2+-
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 @@ -65,7 +65,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do # This should be removed in a future version of Pleroma. Pleroma-FE currently # depends on this field, as well. defp get_context_id(%{data: %{"context" => context}}) when is_binary(context) do - use Bitwise + import Bitwise :erlang.crc32(context) |> band(bnot(0x8000_0000))