From: Stephen Paul Weber Date: Wed, 28 Oct 2015 01:24:29 +0000 (+0000) Subject: Add length argument to plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2edf535ecd07fa14f7f7e8cbe80ab643ce868b9b;p=quix0rs-gnu-social.git Add length argument to plugin --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index 0dace39db0..356044cbe9 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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; }