common api: add support for formatting messages outside of twitter-style plain text
This commit is contained in:
parent
1a70d41f8e
commit
6aa65b68b8
6 changed files with 46 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue