Patch to replace newlines with <br> tags in bio
This commit is contained in:
parent
62a2287bba
commit
52ee91efce
@ -347,7 +347,8 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||||||
def update_profile(%{assigns: %{user: user}} = conn, params) do
|
def update_profile(%{assigns: %{user: user}} = conn, params) do
|
||||||
params =
|
params =
|
||||||
if bio = params["description"] do
|
if bio = params["description"] do
|
||||||
Map.put(params, "bio", bio)
|
bio_brs = Regex.replace(~r/\r\n/,bio,"<br>")
|
||||||
|
Map.put(params, "bio", bio_brs)
|
||||||
else
|
else
|
||||||
params
|
params
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user