make conversation-id deterministic (#154)
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index cf4ea51e0dd3ec9f382796ab644eaffb4d459d91..f0ecf685ba11ab589233cf9acc91a07c0bd6083c 100644 (file)
@@ -57,11 +57,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
     end)
   end
 
-  defp get_context_id(%{data: %{"context_id" => context_id}}) when not is_nil(context_id),
-    do: context_id
-
   defp get_context_id(%{data: %{"context" => context}}) when is_binary(context),
-    do: Utils.context_to_conversation_id(context)
+    do: :erlang.crc32(context)
 
   defp get_context_id(_), do: nil