diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-05-06 18:42:31 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-05-06 18:42:31 +0000 |
commit | 6c2903d9a175cfbf3785d5c1a43e6fcac6b0e9f5 (patch) | |
tree | 6fec6e0ab38db719b2a826640a700c3746be7097 /lib/pleroma/web/common_api/utils.ex | |
parent | 2b708f76e05b4ece7a189d5c74adaf252c2e8b97 (diff) | |
parent | 7a884d70d8fd92a44c35911509b248a902275e07 (diff) | |
download | pleroma-6c2903d9a175cfbf3785d5c1a43e6fcac6b0e9f5.tar.gz |
Merge branch 'feld-warnings' into 'develop'
Clean up warnings
See merge request pleroma/pleroma!144
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 3c092d524..57f8be894 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -1,5 +1,5 @@ defmodule Pleroma.Web.CommonAPI.Utils do - alias Pleroma.{Repo, Object, Formatter, User, Activity} + alias Pleroma.{Repo, Object, Formatter, Activity} alias Pleroma.Web.ActivityPub.Utils alias Calendar.Strftime @@ -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) |