From ec12353f47dade831d0d2d6a9a826caed4db38a0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 24 Jan 2019 20:35:55 +0100 Subject: [PATCH] Merge the str_replacements Signed-off-by: Joas Schilling --- apps/comments/lib/Activity/Provider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/comments/lib/Activity/Provider.php b/apps/comments/lib/Activity/Provider.php index 4940bb6afe..719d4c8bb5 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", '
', str_replace(['<', '>'], ['<', '>'], $message)); + $message = str_replace(['<', '>', "\n"], ['<', '>', '
'], $message); $mentionCount = 1; $mentions = [];