Fix format.
This commit is contained in:
parent
b7584edcea
commit
bc215f5684
2 changed files with 10 additions and 12 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
|
||||
|
|
|
@ -798,6 +798,4 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
|
|||
user = Repo.get!(User, user.id)
|
||||
assert user.bio == "Hello,<br>World! I<br> am a test."
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue