Commit 2207eacc authored by Stephen Paul Weber's avatar Stephen Paul Weber

New length format for other kinds of mentions

parent fed0895d
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment