summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-17 13:48:43 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-01-17 13:48:43 +0100
commit3784fa2074ba411860e2986b7b324f4c93ca899e (patch)
tree0ec02576de2213cb86abbdd16b05e0ab348e82a3 /lib
parentc121610d5a42b8a30a328c0a2f9704fb20d4c369 (diff)
downloadnextcloud-server-3784fa2074ba411860e2986b7b324f4c93ca899e.tar.gz
nextcloud-server-3784fa2074ba411860e2986b7b324f4c93ca899e.zip
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 <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Comments/Comment.php4
1 files changed, 0 insertions, 4 deletions
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;