Updated some references to the long gnone "isEnclosure" function to the new "getEnclosure"

This commit is contained in:
Craig Andrews
2010-01-22 10:12:26 -05:00
committed by Zach Copley
parent e9c127ddd8
commit c30f95c55c
3 changed files with 11 additions and 15 deletions

View File

@@ -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;
}
}