move to rel="salmon" (per latest spec)
This commit is contained in:
parent
a1aea74fe2
commit
517c7483d1
@ -158,6 +158,9 @@ class OStatusPlugin extends Plugin
|
||||
|
||||
// Also, we'll add in the salmon link
|
||||
$salmon = common_local_url($salmonAction, array('id' => $id));
|
||||
$feed->addLink($salmon, array('rel' => Salmon::REL_SALMON));
|
||||
|
||||
// XXX: these are deprecated
|
||||
$feed->addLink($salmon, array('rel' => Salmon::NS_REPLIES));
|
||||
$feed->addLink($salmon, array('rel' => Salmon::NS_MENTIONS));
|
||||
}
|
||||
|
@ -28,9 +28,11 @@
|
||||
*/
|
||||
class Salmon
|
||||
{
|
||||
const REL_SALMON = 'salmon';
|
||||
const REL_MENTIONED = 'mentioned';
|
||||
|
||||
// XXX: these are deprecated
|
||||
const NS_REPLIES = "http://salmon-protocol.org/ns/salmon-replies";
|
||||
|
||||
const NS_MENTIONS = "http://salmon-protocol.org/ns/salmon-mention";
|
||||
|
||||
/**
|
||||
|
@ -76,6 +76,9 @@ class XrdAction extends Action
|
||||
$salmon_url = common_local_url('usersalmon',
|
||||
array('id' => $this->user->id));
|
||||
|
||||
$xrd->links[] = array('rel' => Salmon::REL_SALMON,
|
||||
'href' => $salmon_url);
|
||||
// XXX : Deprecated - to be removed.
|
||||
$xrd->links[] = array('rel' => Salmon::NS_REPLIES,
|
||||
'href' => $salmon_url);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user