X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Ffoaf.php;h=3169bd2d238bb7f35e255efc675d80159b7a1b16;hb=d1fc067471a72589c9ae655f67eeea1709e12af5;hp=d005510b6c3e834085ac12731e3c07be1a5f5397;hpb=c73ebf3382196dfd175fd1d5bc966157d96cde38;p=quix0rs-gnu-social.git diff --git a/actions/foaf.php b/actions/foaf.php index d005510b6c..3169bd2d23 100644 --- a/actions/foaf.php +++ b/actions/foaf.php @@ -90,7 +90,7 @@ class FoafAction extends Action { $scaled = $profile->getAvatar($size); if (!$scaled->original) { # sometimes the original has one of our scaled sizes common_element_start('thumbnail'); - common_element('Image', array('rdf:about', $scaled->url)); + common_element('Image', array('rdf:about' => $scaled->url)); common_element_end('thumbnail'); } } @@ -108,11 +108,11 @@ class FoafAction extends Action { if ($sub->find()) { while ($sub->fetch()) { if ($sub->token) { - $other = Remote_profile::staticGet($sub->subscribed); + $other = Remote_profile::staticGet('id', $sub->subscribed); } else { - $other = User::staticGet($sub->subscribed); + $other = User::staticGet('id', $sub->subscribed); } - common_element('knows', array('rdf:about', $other->uri)); + common_element('knows', array('rdf:resource' => $other->uri)); $person[$other->uri] = array(LISTENEE, $other); } } @@ -125,9 +125,9 @@ class FoafAction extends Action { if ($sub->find()) { while ($sub->fetch()) { if ($sub->token) { - $other = Remote_profile::staticGet($sub->subscribed); + $other = Remote_profile::staticGet('id', $sub->subscribed); } else { - $other = User::staticGet($sub->subscribed); + $other = User::staticGet('id', $sub->subscribed); } if (array_key_exists($other->uri, $person)) { $person[$other->uri][0] = BOTH; @@ -147,7 +147,7 @@ class FoafAction extends Action { $profile = Profile::staticGet($p[1]->id); common_element_start('Person', array('rdf:about' => $uri)); if ($p[0] == LISTENER || $p[0] == BOTH) { - common_element('knows', array('rdf:about', $user->uri)); + common_element('knows', array('rdf:resource' => $user->uri)); } $this->show_microblogging_account($profile, ($p[1] instanceof User) ? common_root_url() : NULL);