From 2207eacc92ac112e84999bd9dd1997db3ba136b9 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 28 Oct 2015 00:15:08 +0000 Subject: [PATCH] New length format for other kinds of mentions --- lib/util.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util.php b/lib/util.php index f31812349b..8eb44c372a 100644 --- a/lib/util.php +++ b/lib/util.php @@ -794,6 +794,7 @@ function common_find_mentions($text, Notice $notice) 'type' => 'list', 'text' => $hmatch[0], 'position' => $hmatch[1], + 'length' => mb_strlen($hmatch[0]), 'url' => $url); } @@ -813,6 +814,7 @@ function common_find_mentions($text, Notice $notice) 'type' => 'group', 'text' => $hmatch[0], 'position' => $hmatch[1], + 'length' => mb_strlen($hmatch[0]), 'url' => $group->permalink(), 'title' => $group->getFancyName()); } -- 2.39.5