summaryrefslogtreecommitdiff
path: root/lib/apiaction.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-22 10:12:26 -0500
committerZach Copley <zach@status.net>2010-03-02 14:25:06 -0800
commitc30f95c55cb4fcdde53c0549335d29ed6849cf95 (patch)
tree567a5fb3431890a69da31bfbf4a79c56d37dbeec /lib/apiaction.php
parente9c127ddd869f44eafe7ae6b30d9dc69df8b863c (diff)
Updated some references to the long gnone "isEnclosure" function to the new "getEnclosure"
Diffstat (limited to 'lib/apiaction.php')
-rw-r--r--lib/apiaction.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/apiaction.php b/lib/apiaction.php
index 8049c0901..f71432e03 100644
--- a/lib/apiaction.php
+++ b/lib/apiaction.php
@@ -291,11 +291,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;
}
}