diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-12-10 18:28:02 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-12-10 18:28:02 +0000 |
commit | ab98c92d86f91b0c83f482e002e4a518b93f65ca (patch) | |
tree | 4e2c08bdf5e2b4e2b53dfee7902ee53ff4bfc73b /lib/pleroma/web/common_api/utils.ex | |
parent | cf85a9aea1949677a092c0ebc6c0e17475346632 (diff) | |
parent | b621ebb7a65ac7facea8dbf8e29d3564d296dd27 (diff) | |
download | pleroma-ab98c92d86f91b0c83f482e002e4a518b93f65ca.tar.gz |
Merge branch 'parallel588/pleroma-support/compile_warnings' into 'develop'
Parallel588/pleroma support/compile warnings
See merge request pleroma/pleroma!532
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} -> %{ |