diff options
author | James Walker <walkah@walkah.net> | 2010-08-02 14:06:14 -0400 |
---|---|---|
committer | James Walker <walkah@walkah.net> | 2010-08-02 14:06:14 -0400 |
commit | e603632f13e87aa2671bd5ff732c4858ce44ef6e (patch) | |
tree | a9b0c00f9bda8fc18d9df1e299500b6a433c6765 /classes | |
parent | 517c7483d1b55fcc78b1d69e8ffd7de763faa772 (diff) |
add support for Salmon's new "mentioned" rel value
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 3297c7a59..399879e79 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1330,24 +1330,38 @@ class Notice extends Memcached_DataObject 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)) { |