[#2456] Changed embed_relationships param to with_relationships.
This commit is contained in:
parent
33b798425f
commit
59b6d5f2aa
7 changed files with 77 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue