}
foreach ($this->context->attention as $attnURI) {
- $xs->element('link', array('rel' => ActivityContext::ATTENTION,
- 'href' => $attnURI));
$xs->element('link', array('rel' => ActivityContext::MENTIONED,
'href' => $attnURI));
}
const POINT = 'point';
- const ATTENTION = 'ostatus:attention';
const MENTIONED = 'mentioned';
const CONVERSATION = 'ostatus:conversation';
$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) {
- $attention[] = $link->getAttribute(self::HREF);
- } elseif ($linkRel == self::MENTIONED) {
+ if ($linkRel == self::MENTIONED) {
$attention[] = $link->getAttribute(self::HREF);
}
}
$element = $this->_entryToElement($entry, true);
- $this->assertEquals($this->targetUser1->uri, ActivityUtils::getLink($element, 'ostatus:attention'));
$this->assertEquals($this->targetUser1->uri, ActivityUtils::getLink($element, 'mentioned'));
}
$element = $this->_entryToElement($entry, true);
- $links = ActivityUtils::getLinks($element, 'ostatus:attention');
+ $links = ActivityUtils::getLinks($element, 'mentioned');
$this->assertEquals(2, count($links));
$element = $this->_entryToElement($entry, true);
- $this->assertEquals($this->targetGroup1->uri, ActivityUtils::getLink($element, 'ostatus:attention'));
$this->assertEquals($this->targetGroup1->uri, ActivityUtils::getLink($element, 'mentioned'));
}
$element = $this->_entryToElement($entry, true);
- $links = ActivityUtils::getLinks($element, 'ostatus:attention');
+ $links = ActivityUtils::getLinks($element, 'mentioned');
$this->assertEquals(2, count($links));
<link rel="related" href="http://example.net/notice/12"/>
<thr:in-reply-to ref="http://example.net/notice/12" href="http://example.net/notice/12"></thr:in-reply-to>
<link rel="ostatus:conversation" href="http://example.net/conversation/11"/>
- <link rel="ostatus:attention" href="http://example.net/user/1"/>
+ <link rel="mentioned" href="http://example.net/user/1"/>
<content type="html">@<span class="vcard"><a href="http://example.net/user/1" class="url"><span class="fn nickname">evan</span></a></span> now is the time for all good men to come to the aid of their country. #<span class="tag"><a href="http://example.net/tag/thetime" rel="tag">thetime</a></span></content>
<category term="thetime"></category>
</entry>
</poco:urls>
</author>
<link rel="ostatus:conversation" href="http://lazarus.local/mublog/conversation/1131"/>
- <link rel="ostatus:attention" href="http://lazarus.local/mublog/group/22/id"/>
<link rel="mentioned" href="http://lazarus.local/mublog/group/22/id"/>
<category term="grouptest316173"></category>
<source>