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', '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;
} }