summaryrefslogtreecommitdiff
path: root/lib/api.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-22 10:12:26 -0500
committerCraig Andrews <candrews@integralblue.com>2010-01-22 10:12:26 -0500
commit672126968f42ebda3cc444190c4364ea35144dad (patch)
treed6787309a8c45285dce0eed6f9084aa1db54ed94 /lib/api.php
parent26fdf0c9d210d79c4e279fafd35eb25302911da3 (diff)
Updated some references to the long gnone "isEnclosure" function to the new "getEnclosure"
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..b4803fe62 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 ($attachment_enclosure) {
$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;
}
}