diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-09 12:12:48 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-09 20:50:08 +0300 |
commit | 074fa790ba6282772cd8b2d40926032228d17c81 (patch) | |
tree | a26ff21d9a70e5aa86f162eabd47dc199d6460f1 /lib/pleroma/web/common_api/utils.ex | |
parent | cf85a9aea1949677a092c0ebc6c0e17475346632 (diff) | |
download | pleroma-074fa790ba6282772cd8b2d40926032228d17c81.tar.gz |
fix compile 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 728f24c7e..8f2625cef 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -122,7 +122,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do |> Formatter.finalize() end - def format_input(text, mentions, tags, "text/html") do + def format_input(text, mentions, _tags, "text/html") do text |> Formatter.html_escape("text/html") |> String.replace(~r/\r?\n/, "<br>") @@ -236,7 +236,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do end end - def emoji_from_profile(%{info: info} = user) do + def emoji_from_profile(%{info: _info} = user) do (Formatter.get_emoji(user.bio) ++ Formatter.get_emoji(user.name)) |> Enum.map(fn {shortcode, url} -> %{ |