mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 16:40:29 +00:00
Changed to support \r\n and \n
This commit is contained in:
parent
52ee91efce
commit
7517155544
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ defmodule Pleroma.Web.TwitterAPI.Controller do
|
|||
def update_profile(%{assigns: %{user: user}} = conn, params) do
|
||||
params =
|
||||
if bio = params["description"] do
|
||||
bio_brs = Regex.replace(~r/\r\n/,bio,"<br>")
|
||||
bio_brs = Regex.replace(~r/\r?\n/,bio,"<br>")
|
||||
Map.put(params, "bio", bio_brs)
|
||||
else
|
||||
params
|
||||
|
|
Loading…
Reference in a new issue