From 2edf535ecd07fa14f7f7e8cbe80ab643ce868b9b Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 28 Oct 2015 01:24:29 +0000 Subject: [PATCH] Add length argument to plugin --- plugins/OStatus/OStatusPlugin.php | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5