mentions from OStatus lookup were missing a 'type' attribute in common_linkify_mention
This commit is contained in:
parent
63102950b2
commit
698a7adb83
@ -332,7 +332,7 @@ class OStatusPlugin extends Plugin
|
|||||||
* Find any explicit remote mentions. Accepted forms:
|
* Find any explicit remote mentions. Accepted forms:
|
||||||
* Webfinger: @user@example.com
|
* Webfinger: @user@example.com
|
||||||
* Profile link: @example.com/mublog/user
|
* Profile link: @example.com/mublog/user
|
||||||
* @param Profile $sender (os user?)
|
* @param Profile $sender
|
||||||
* @param string $text input markup text
|
* @param string $text input markup text
|
||||||
* @param array &$mention in/out param: set of found mentions
|
* @param array &$mention in/out param: set of found mentions
|
||||||
* @return boolean hook return value
|
* @return boolean hook return value
|
||||||
@ -354,6 +354,7 @@ class OStatusPlugin extends Plugin
|
|||||||
if ($oprofile && !$oprofile->isGroup()) {
|
if ($oprofile && !$oprofile->isGroup()) {
|
||||||
$profile = $oprofile->localProfile();
|
$profile = $oprofile->localProfile();
|
||||||
$matches[$pos] = array('mentioned' => array($profile),
|
$matches[$pos] = array('mentioned' => array($profile),
|
||||||
|
'type' => 'mention',
|
||||||
'text' => $target,
|
'text' => $target,
|
||||||
'position' => $pos,
|
'position' => $pos,
|
||||||
'url' => $profile->profileurl);
|
'url' => $profile->profileurl);
|
||||||
@ -380,6 +381,7 @@ class OStatusPlugin extends Plugin
|
|||||||
if ($oprofile && !$oprofile->isGroup()) {
|
if ($oprofile && !$oprofile->isGroup()) {
|
||||||
$profile = $oprofile->localProfile();
|
$profile = $oprofile->localProfile();
|
||||||
$matches[$pos] = array('mentioned' => array($profile),
|
$matches[$pos] = array('mentioned' => array($profile),
|
||||||
|
'type' => 'mention',
|
||||||
'text' => $target,
|
'text' => $target,
|
||||||
'position' => $pos,
|
'position' => $pos,
|
||||||
'url' => $profile->profileurl);
|
'url' => $profile->profileurl);
|
||||||
|
Loading…
Reference in New Issue
Block a user