diff options
author | Joas Schilling <coding@schilljs.com> | 2021-01-29 09:46:14 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-02-06 13:07:05 +0100 |
commit | 1344c61145c2a9eb36c1c211daa9018f00693c7c (patch) | |
tree | 46d58bd955a8acb92680319c449b4e3bcbf7d82e /lib/private/Comments | |
parent | 6945bd8cc388a7a697ef0342d406423f2e545a78 (diff) | |
download | nextcloud-server-1344c61145c2a9eb36c1c211daa9018f00693c7c.tar.gz nextcloud-server-1344c61145c2a9eb36c1c211daa9018f00693c7c.zip |
Improve mention matches
The previous regex didn't correctly match users with . ' or -
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Comments')
-rw-r--r-- | lib/private/Comments/Comment.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Comments/Comment.php b/lib/private/Comments/Comment.php index 7368425174a..c838e9571c6 100644 --- a/lib/private/Comments/Comment.php +++ b/lib/private/Comments/Comment.php @@ -233,6 +233,7 @@ class Comment implements IComment { return []; } $uids = array_unique($mentions[0]); + usort($uids, 'mb_strlen'); $result = []; foreach ($uids as $uid) { $cleanUid = trim(substr($uid, 1), '"'); |