remove fallback to context_id entirely
ci/woodpecker/push/woodpecker Pipeline is pending Details

This commit is contained in:
FloatingGhost 2022-08-06 21:42:16 +01:00
parent 3e8a069f2a
commit 54d1e06c9b
3 changed files with 0 additions and 5 deletions

View File

@ -60,9 +60,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
defp get_context_id(%{data: %{"context" => context}}) when is_binary(context),
do: :erlang.crc32(context)
defp get_context_id(%{data: %{"context_id" => context_id}}) when not is_nil(context_id),
do: context_id
defp get_context_id(_), do: nil
# Check if the user reblogged this status

View File

@ -4,7 +4,6 @@
defmodule Pleroma.Web.CommonAPI.UtilsTest do
alias Pleroma.Builders.UserBuilder
alias Pleroma.Object
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.CommonAPI.ActivityDraft
alias Pleroma.Web.CommonAPI.Utils

View File

@ -14,7 +14,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
alias Pleroma.User
alias Pleroma.UserRelationship
alias Pleroma.Web.CommonAPI
alias Pleroma.Web.CommonAPI.Utils
alias Pleroma.Web.MastodonAPI.AccountView
alias Pleroma.Web.MastodonAPI.StatusView