aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/utils.ex
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-02-06 20:19:39 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-02-09 14:59:20 +0100
commit106f4e7a0fd70ab04a116238af0322e991cc88c6 (patch)
tree43c1763c64d6b264ee4a69e401d1bb138da2fcec /lib/pleroma/web/common_api/utils.ex
parent8bcfac93a8586c12661427187ba8147dacc28c5b (diff)
downloadpleroma-106f4e7a0fd70ab04a116238af0322e991cc88c6.tar.gz
Credo fixes: parameter consistency
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index 84be1d4a3..be90b60bc 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -94,7 +94,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
def make_context(%Activity{data: %{"context" => context}}), do: context
def make_context(_), do: Utils.generate_context_id()
- def maybe_add_attachments(text, _attachments, _no_links = true), do: text
+ def maybe_add_attachments(text, _attachments, true = _no_links), do: text
def maybe_add_attachments(text, attachments, _no_links) do
add_attachments(text, attachments)