diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-04-11 14:02:56 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2023-04-11 14:02:56 -0100 |
commit | 7854d6b96d9545129c02769838774ea2235d7cae (patch) | |
tree | fac2988c363c08968dc8669fc589795d0ec386fe /lib | |
parent | 8fc2528449f4d2f699c65c73186b1bb954753d58 (diff) |
line breaks
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/ApiController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index a4825a83..900ef551 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -247,7 +247,7 @@ class ApiController extends Controller { $status->import($this->convertInput($input)); $post = new Post($this->accountService->getActorFromUserId($this->currentSession())); - $post->setContent($status->getStatus()); + $post->setContent(nl2br($status->getStatus())); $post->setType($status->getVisibility()); if (!empty($status->getMediaIds())) { |