diff options
author | Mark Felder <feld@feld.me> | 2018-05-04 20:59:01 +0000 |
---|---|---|
committer | Mark Felder <feld@feld.me> | 2018-05-04 20:59:01 +0000 |
commit | ab4aa5720aeac8541fbf99e6c98e7260cb19d41e (patch) | |
tree | a77d97ea65e39e68785d5c1dfd553bec6ec08074 /lib/pleroma/web/common_api/utils.ex | |
parent | 11a1241d41a166714aca22afff6f540a11d642aa (diff) | |
download | pleroma-ab4aa5720aeac8541fbf99e6c98e7260cb19d41e.tar.gz |
Fix a bunch of unused variable warnings
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 3c092d524..b142eda95 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -49,7 +49,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do {[user.follower_address | to], cc} end - def to_for_user_and_mentions(user, mentions, inReplyTo, "direct") do + def to_for_user_and_mentions(_user, mentions, inReplyTo, "direct") do mentioned_users = Enum.map(mentions, fn {_, %{ap_id: ap_id}} -> ap_id end) if inReplyTo do @@ -69,7 +69,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, _no_links = true), do: text def maybe_add_attachments(text, attachments, _no_links) do add_attachments(text, attachments) |