New length format for other kinds of mentions

This commit is contained in:
Stephen Paul Weber 2015-10-28 00:15:08 +00:00
parent fed0895d98
commit 2207eacc92
1 changed files with 2 additions and 0 deletions

View File

@ -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());
}