aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/controller_helper.ex
diff options
context:
space:
mode:
authorIvan Tashkinov <ivantashkinov@gmail.com>2020-05-13 15:08:07 +0300
committerIvan Tashkinov <ivantashkinov@gmail.com>2020-05-13 15:08:07 +0300
commit59b6d5f2aa57f78ecfe7066671bb12d223214c18 (patch)
tree11080324ab7397e1c15b3c19bb500639cf1b574e /lib/pleroma/web/controller_helper.ex
parent33b798425f8d194db9a5acdff372f14a69e43c9d (diff)
downloadpleroma-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.ex6
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