summaryrefslogtreecommitdiff
path: root/lib/activityobject.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-23 08:21:32 -0700
committerBrion Vibber <brion@pobox.com>2010-03-23 08:21:32 -0700
commita5c78a6f1a7bef591e136ca23f7a133f8905475a (patch)
tree5ab54039ea0ce4982ebf84e0ba05109f0ec467a9 /lib/activityobject.php
parent68a5fba24847991330d1a31b3c3f875c5d02cb6e (diff)
parent5b0b6097e0e47c84c2e47c8a14421a58be1fac19 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/activityobject.php')
-rw-r--r--lib/activityobject.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/activityobject.php b/lib/activityobject.php
index 0a358ccab..34d1b9170 100644
--- a/lib/activityobject.php
+++ b/lib/activityobject.php
@@ -100,6 +100,13 @@ class ActivityObject
public $poco;
public $displayName;
+ // @todo move this stuff to it's own PHOTO activity object
+ const MEDIA_DESCRIPTION = 'description';
+
+ public $thumbnail;
+ public $largerImage;
+ public $description;
+
/**
* Constructor
*
@@ -150,6 +157,19 @@ class ActivityObject
$this->poco = new PoCo($element);
}
+
+ if ($this->type == self::PHOTO) {
+
+ $this->thumbnail = ActivityUtils::getLink($element, 'preview');
+ $this->largerImage = ActivityUtils::getLink($element, 'enclosure');
+
+ $this->description = ActivityUtils::childContent(
+ $element,
+ ActivityObject::MEDIA_DESCRIPTION,
+ Activity::MEDIA
+ );
+
+ }
}
private function _fromAuthor($element)