diff options
author | Zach Copley <zach@status.net> | 2010-02-16 11:32:10 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-16 11:32:10 -0800 |
commit | eea52c708b4688c9b39f24d3931edc9da2cf1b07 (patch) | |
tree | 413a8f12aaa9e9522833b550ccd9b9fbbe697b4a /classes/Profile.php | |
parent | 201110ffaa8ae0ce4e74fe46a7a730203be681cd (diff) |
Add rel="avatar" to img links in <activity:actor> stanzas
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index c79b1d893..8f578c95a 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -807,8 +807,6 @@ class Profile extends Memcached_DataObject null, 'http://activitystrea.ms/schema/1.0/person' ); - // FIXME: this presupposes a local user -- not necessarily the case - // instead use User::uri or Remote_profile::uri or Ostatus_profile::homeuri $xs->element( 'id', null, @@ -824,6 +822,7 @@ class Profile extends Memcached_DataObject $xs->element( 'link', array( 'type' => empty($avatar) ? 'image/png' : $avatar->mediatype, + 'rel' => 'avatar', 'href' => empty($avatar) ? Avatar::defaultImage(AVATAR_PROFILE_SIZE) : $avatar->displayUrl() |