Add length argument to plugin

This commit is contained in:
Stephen Paul Weber 2015-10-28 01:24:29 +00:00
parent 2207eacc92
commit 2edf535ecd

View File

@ -282,6 +282,7 @@ class OStatusPlugin extends Plugin
'type' => 'mention',
'text' => $target,
'position' => $pos,
'length' => mb_strlen($target),
'url' => $profile->getUrl());
}
} catch (Exception $e) {
@ -309,6 +310,7 @@ class OStatusPlugin extends Plugin
'type' => 'mention',
'text' => $target,
'position' => $pos,
'length' => mb_strlen($target),
'url' => $profile->getUrl());
break;
}