diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-13 15:08:07 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-05-13 15:08:07 +0300 |
commit | 59b6d5f2aa57f78ecfe7066671bb12d223214c18 (patch) | |
tree | 11080324ab7397e1c15b3c19bb500639cf1b574e /lib/pleroma/web/controller_helper.ex | |
parent | 33b798425f8d194db9a5acdff372f14a69e43c9d (diff) | |
download | pleroma-59b6d5f2aa57f78ecfe7066671bb12d223214c18.tar.gz |
[#2456] Changed `embed_relationships` param to `with_relationships`.
Diffstat (limited to 'lib/pleroma/web/controller_helper.ex')
-rw-r--r-- | lib/pleroma/web/controller_helper.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/controller_helper.ex b/lib/pleroma/web/controller_helper.ex index ae9b265b1..ff94c6be0 100644 --- a/lib/pleroma/web/controller_helper.ex +++ b/lib/pleroma/web/controller_helper.ex @@ -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 |