]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add length argument to plugin
authorStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:24:29 +0000 (01:24 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Wed, 28 Oct 2015 01:24:29 +0000 (01:24 +0000)
plugins/OStatus/OStatusPlugin.php

index 0dace39db0a542da1031df2f40de0abe0560ee61..356044cbe9b8810339668d7f27ae2f0c2b282501 100644 (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;
                         }