common api: add support for formatting messages outside of twitter-style plain text

This commit is contained in:
William Pitcock 2018-08-31 03:13:59 +00:00
commit 6aa65b68b8
6 changed files with 46 additions and 7 deletions

View file

@ -423,7 +423,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
{String.trim(name, ":"), url}
end)
bio_html = CommonUtils.format_input(bio, mentions, tags)
bio_html = CommonUtils.format_input(bio, mentions, tags, "text/plain")
Map.put(params, "bio", bio_html |> Formatter.emojify(emoji))
else
params