[#2456] Changed embed_relationships param to with_relationships.

This commit is contained in:
Ivan Tashkinov 2020-05-13 15:08:07 +03:00
commit 59b6d5f2aa
7 changed files with 77 additions and 85 deletions

View file

@ -104,8 +104,8 @@ defmodule Pleroma.Web.ControllerHelper do
def put_if_exist(map, key, value), do: Map.put(map, key, value)
def embed_relationships?(params) do
# To do: change to `truthy_param?(params["embed_relationships"])` once PleromaFE supports it
not explicitly_falsy_param?(params["embed_relationships"])
def with_relationships?(params) do
# To do: change to `truthy_param?(params["with_relationships"])` once PleromaFE supports it
not explicitly_falsy_param?(params["with_relationships"])
end
end