Add length argument to plugin
This commit is contained in:
parent
2207eacc92
commit
2edf535ecd
@ -282,6 +282,7 @@ class OStatusPlugin extends Plugin
|
|||||||
'type' => 'mention',
|
'type' => 'mention',
|
||||||
'text' => $target,
|
'text' => $target,
|
||||||
'position' => $pos,
|
'position' => $pos,
|
||||||
|
'length' => mb_strlen($target),
|
||||||
'url' => $profile->getUrl());
|
'url' => $profile->getUrl());
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
@ -309,6 +310,7 @@ class OStatusPlugin extends Plugin
|
|||||||
'type' => 'mention',
|
'type' => 'mention',
|
||||||
'text' => $target,
|
'text' => $target,
|
||||||
'position' => $pos,
|
'position' => $pos,
|
||||||
|
'length' => mb_strlen($target),
|
||||||
'url' => $profile->getUrl());
|
'url' => $profile->getUrl());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user