diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2023-04-11 15:25:44 -0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-11 15:25:44 -0100 |
commit | c71ed30f2f3cb55212e106b67447d619aa50b348 (patch) | |
tree | afa38310b432b00e6c77ac25164fe3d7446aa32f /lib | |
parent | 9ef07b2f2e19844ec2a4d8af7be476b464db00ff (diff) | |
parent | 7854d6b96d9545129c02769838774ea2235d7cae (diff) |
Merge pull request #1728 from nextcloud/fix/noid/line-breaks
line breaks
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())) { |