diff options
author | Brion Vibber <brion@pobox.com> | 2010-02-17 01:49:49 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-02-17 01:49:49 +0000 |
commit | 454d0b5738a1b79510b998b6da6d0df129a182ab (patch) | |
tree | 1095c86d771d551d9663ccc812f52a5b0047f100 /plugins/OStatus/lib/activity.php | |
parent | 4a139d1cc861272b45812969878fa62f81ed9cfe (diff) |
OStatus: moving parts of profile processing to Activity from feedmunger. Pausing before refactoring DB schema a bit to clean up feed vs person vs group info
Diffstat (limited to 'plugins/OStatus/lib/activity.php')
-rw-r--r-- | plugins/OStatus/lib/activity.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/OStatus/lib/activity.php b/plugins/OStatus/lib/activity.php index 5b1c4fa8f..f137946ab 100644 --- a/plugins/OStatus/lib/activity.php +++ b/plugins/OStatus/lib/activity.php @@ -247,6 +247,14 @@ class ActivityObject // XXX: grab PoCo stuff } + + // Some per-type attributes... + if ($this->type == self::PERSON || $this->type == self::GROUP) { + $this->displayName = $this->title; + + // @fixme we may have multiple avatars with different resolutions specified + $this->avatar = ActivityUtils::getLink($element, 'avatar'); + } } private function _childContent($element, $tag, $namespace=ActivityUtils::ATOM) |