]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add rel="avatar" to img links in <activity:actor> stanzas
authorZach Copley <zach@status.net>
Tue, 16 Feb 2010 19:32:10 +0000 (11:32 -0800)
committerZach Copley <zach@status.net>
Tue, 16 Feb 2010 19:32:10 +0000 (11:32 -0800)
classes/Profile.php

index c79b1d893a30ba018046817d835dfdbdb246a715..8f578c95a3eb8b897bff9309989679af726174fb 100644 (file)
@@ -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()