From: Mikael Nordfeldth Date: Sun, 23 Feb 2014 20:49:55 +0000 (+0100) Subject: mentions from OStatus lookup were missing a 'type' attribute in common_linkify_mention X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=698a7adb834ad2ef4db05ee9717dd860c3979fe5;p=quix0rs-gnu-social.git mentions from OStatus lookup were missing a 'type' attribute in common_linkify_mention --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index c6c413873e..75d4fb74bc 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -332,7 +332,7 @@ class OStatusPlugin extends Plugin * Find any explicit remote mentions. Accepted forms: * Webfinger: @user@example.com * Profile link: @example.com/mublog/user - * @param Profile $sender (os user?) + * @param Profile $sender * @param string $text input markup text * @param array &$mention in/out param: set of found mentions * @return boolean hook return value @@ -354,6 +354,7 @@ class OStatusPlugin extends Plugin if ($oprofile && !$oprofile->isGroup()) { $profile = $oprofile->localProfile(); $matches[$pos] = array('mentioned' => array($profile), + 'type' => 'mention', 'text' => $target, 'position' => $pos, 'url' => $profile->profileurl); @@ -380,6 +381,7 @@ class OStatusPlugin extends Plugin if ($oprofile && !$oprofile->isGroup()) { $profile = $oprofile->localProfile(); $matches[$pos] = array('mentioned' => array($profile), + 'type' => 'mention', 'text' => $target, 'position' => $pos, 'url' => $profile->profileurl);