Merge branch 'patch-bio' into 'develop'
replace newlines in profiles with <br> See merge request pleroma/pleroma!136
This commit is contained in:
commit
b7584edcea
2 changed files with 18 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…
Add table
Add a link
Reference in a new issue