summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-20 11:17:54 -0500
committerEvan Prodromou <evan@status.net>2010-02-20 11:17:54 -0500
commited45df045f661e9c3b85e0657986c99c320914f0 (patch)
tree63b2caf3ce3b53e4741b795741696c95002fa9ff /plugins
parent2df3bbc80b6c9dd44134bcf3b5b4a09ea1a803d1 (diff)
Cool bug! Technically good PHP syntax
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OStatus/classes/Ostatus_profile.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php
index b14b4c9a3..9f5c60561 100644
--- a/plugins/OStatus/classes/Ostatus_profile.php
+++ b/plugins/OStatus/classes/Ostatus_profile.php
@@ -149,7 +149,6 @@ class Ostatus_profile extends Memcached_DataObject
function asActivityNoun($element)
{
$xs = new XMLStringer(true);
-
$avatarHref = Avatar::defaultImage(AVATAR_PROFILE_SIZE);
$avatarType = 'image/png';
if ($this->isGroup()) {
@@ -173,8 +172,8 @@ class Ostatus_profile extends Memcached_DataObject
$self = $this->localProfile();
$avatar = $self->getAvatar(AVATAR_PROFILE_SIZE);
if ($avatar) {
- $avatarHref = $avatar->
- $avatarType = $avatar->mediatype;
+ $avatarHref = $avatar->url;
+ $avatarType = $avatar->mediatype;
}
}
$xs->elementStart('activity:' . $element);
@@ -672,10 +671,10 @@ class Ostatus_profile extends Memcached_DataObject
// Get the canonical feed URI and check it
$discover = new FeedDiscovery();
$feeduri = $discover->discoverFromURL($homeuri);
-
+
$huburi = $discover->getAtomLink('hub');
$salmonuri = $discover->getAtomLink('salmon');
-
+
if (!$huburi) {
// We can only deal with folks with a PuSH hub
throw new FeedSubNoHubException();