forked from GNUsocial/gnu-social
New length format for other kinds of mentions
This commit is contained in:
parent
fed0895d98
commit
2207eacc92
@ -794,6 +794,7 @@ function common_find_mentions($text, Notice $notice)
|
|||||||
'type' => 'list',
|
'type' => 'list',
|
||||||
'text' => $hmatch[0],
|
'text' => $hmatch[0],
|
||||||
'position' => $hmatch[1],
|
'position' => $hmatch[1],
|
||||||
|
'length' => mb_strlen($hmatch[0]),
|
||||||
'url' => $url);
|
'url' => $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -813,6 +814,7 @@ function common_find_mentions($text, Notice $notice)
|
|||||||
'type' => 'group',
|
'type' => 'group',
|
||||||
'text' => $hmatch[0],
|
'text' => $hmatch[0],
|
||||||
'position' => $hmatch[1],
|
'position' => $hmatch[1],
|
||||||
|
'length' => mb_strlen($hmatch[0]),
|
||||||
'url' => $group->permalink(),
|
'url' => $group->permalink(),
|
||||||
'title' => $group->getFancyName());
|
'title' => $group->getFancyName());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user