diff options
author | Joas Schilling <coding@schilljs.com> | 2019-01-24 20:35:55 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-01-24 20:35:55 +0100 |
commit | ec12353f47dade831d0d2d6a9a826caed4db38a0 (patch) | |
tree | da1356d355a6109535c38ba9c10034ba5d1fd626 /apps/comments/lib | |
parent | 8e48140c86810eed889ee361c16c30f6467e756f (diff) | |
download | nextcloud-server-ec12353f47dade831d0d2d6a9a826caed4db38a0.tar.gz nextcloud-server-ec12353f47dade831d0d2d6a9a826caed4db38a0.zip |
Merge the str_replacements
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/comments/lib')
-rw-r--r-- | apps/comments/lib/Activity/Provider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php index 4940bb6afec..719d4c8bb56 100644 --- a/apps/comments/lib/Activity/Provider.php +++ b/apps/comments/lib/Activity/Provider.php @@ -204,7 +204,7 @@ class Provider implements IProvider { try { $comment = $this->commentsManager->get((string) $commentId); $message = $comment->getMessage(); - $message = str_replace("\n", '<br />', str_replace(['<', '>'], ['<', '>'], $message)); + $message = str_replace(['<', '>', "\n"], ['<', '>', '<br />'], $message); $mentionCount = 1; $mentions = []; |