diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-03 09:53:38 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-03 09:53:38 -0800 |
commit | 7313cd909479f771e960466d9194783c9a3158bb (patch) | |
tree | 318734efe06c9de904364f04cb76e1c54b75e269 /lib/activity.php | |
parent | 49a872b56f82a3f1ba59f0751c11dfe7754393dd (diff) | |
parent | f3cea2430497e751bc7776fe3abf0603e2b55f8b (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline
Conflicts:
plugins/OStatus/OStatusPlugin.php
Diffstat (limited to 'lib/activity.php')
-rw-r--r-- | lib/activity.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/activity.php b/lib/activity.php index 7926d0569..7334239ec 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -1048,6 +1048,7 @@ class Activity public $id; // ID of the activity public $title; // title of the activity public $categories = array(); // list of AtomCategory objects + public $enclosures = array(); // list of enclosure URL references /** * Turns a regular old Atom <entry> into a magical activity @@ -1144,6 +1145,10 @@ class Activity $this->categories[] = new AtomCategory($catEl); } } + + foreach (ActivityUtils::getLinks($entry, 'enclosure') as $link) { + $this->enclosures[] = $link->getAttribute('href'); + } } /** |