From eea52c708b4688c9b39f24d3931edc9da2cf1b07 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 16 Feb 2010 11:32:10 -0800 Subject: [PATCH] Add rel="avatar" to img links in stanzas --- classes/Profile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/Profile.php b/classes/Profile.php index c79b1d893a..8f578c95a3 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() -- 2.39.5