foreach ($reply_ids as $id) {
$profile = Profile::staticGet('id', $id);
if (!empty($profile)) {
+ // XXX: Deprecate this for 'mentioned'
$xs->element(
'link', array(
'rel' => 'ostatus:attention',
'href' => $profile->getUri()
)
);
+ $xs->element(
+ 'link', array(
+ 'rel' => 'mentioned',
+ 'href' => $profile->getUri()
+ )
+ );
}
}
$groups = $this->getGroups();
foreach ($groups as $group) {
+ // XXX: Deprecate this for 'mentioned'
$xs->element(
'link', array(
'rel' => 'ostatus:attention',
'href' => $group->permalink()
)
);
+ $xs->element(
+ 'link', array(
+ 'rel' => 'mentioned',
+ 'href' => $group->permalink()
+ )
+ );
}
if (!empty($this->repeat_of)) {
const POINT = 'point';
const ATTENTION = 'ostatus:attention';
+ const MENTIONED = 'mentioned';
const CONVERSATION = 'ostatus:conversation';
function __construct($element)
$linkRel = $link->getAttribute(ActivityUtils::REL);
+ // XXX: Deprecate this in favour of "mentioned" from Salmon spec
+ // http://salmon-protocol.googlecode.com/svn/trunk/draft-panzer-salmon-00.html#SALR
if ($linkRel == self::ATTENTION) {
$this->attention[] = $link->getAttribute(self::HREF);
+ } else if ($linkRel == self:MENTIONED) {
+ $this->attention[] = $link->getAttribute(self::HREF);
}
}
}