[#2456] Dropped support for embedded pleroma/account/relationship in statuses and notifications.

This commit is contained in:
Ivan Tashkinov 2020-05-09 18:05:44 +03:00
commit 14a49a0483
14 changed files with 52 additions and 174 deletions

View file

@ -103,9 +103,4 @@ defmodule Pleroma.Web.ControllerHelper do
def put_if_exist(map, _key, nil), do: map
def put_if_exist(map, key, value), do: Map.put(map, key, value)
@doc "Whether to skip `account.pleroma.relationship` rendering for statuses/notifications"
def skip_relationships?(params) do
not truthy_param?(params["with_relationships"])
end
end