From 3784fa2074ba411860e2986b7b324f4c93ca899e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 17 Jan 2018 13:48:43 +0100 Subject: comments should compile mentions also if done by author it is used by clients for formatting reasons, there is no reason not format the author if her handle is included in the comment body. It is unrelated to sending out notifications. Signed-off-by: Arthur Schiwon --- lib/private/Comments/Comment.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib') diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index acfebd32028..dd790c2e50a 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -232,10 +232,6 @@ class Comment implements IComment { $uids = array_unique($mentions[0]); $result = []; foreach ($uids as $uid) { - // exclude author, no self-mentioning - if($uid === '@' . $this->getActorId()) { - continue; - } $result[] = ['type' => 'user', 'id' => substr($uid, 1)]; } return $result; -- cgit v1.2.3