mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Patch to replace newlines with <br> tags in bio
This commit is contained in:
parent
62a2287bba
commit
52ee91efce
1 changed files with 2 additions and 1 deletions
|
@ -347,7 +347,8 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
def update_profile(%{assigns: %{user: user}} = conn, params) do
|
||||
params =
|
||||
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
|
||||
params
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue