summaryrefslogtreecommitdiff
path: root/lib/api.php
diff options
context:
space:
mode:
authorBrenda Wallace <shiny@cpan.org>2010-01-24 14:54:31 +1300
committerBrenda Wallace <shiny@cpan.org>2010-01-24 14:54:31 +1300
commitef3b849db05ff6ad4b9e97b38a82242a710519d1 (patch)
tree7a121df2e7ed4b4644b92b9652e1fc59999f84df /lib/api.php
parent02a6006bafd663443b512c5c283b64c7dacfbbb1 (diff)
parent8c54151dbd2dbf99b23124ec618b2fa5570ac2ee (diff)
Merge commit 'mainline/0.9.x' into 0.9.x
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/api.php b/lib/api.php
index 794b14050..825262b4c 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -288,11 +288,12 @@ class ApiAction extends Action
$twitter_status['attachments'] = array();
foreach ($attachments as $attachment) {
- if ($attachment->isEnclosure()) {
+ $enclosure_o=$attachment->getEnclosure();
+ if ($enclosure_o) {
$enclosure = array();
- $enclosure['url'] = $attachment->url;
- $enclosure['mimetype'] = $attachment->mimetype;
- $enclosure['size'] = $attachment->size;
+ $enclosure['url'] = $enclosure_o->url;
+ $enclosure['mimetype'] = $enclosure_o->mimetype;
+ $enclosure['size'] = $enclosure_o->size;
$twitter_status['attachments'][] = $enclosure;
}
}