diff options
author | Evan Prodromou <evan@status.net> | 2009-08-27 14:52:32 -0700 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-08-27 14:52:32 -0700 |
commit | a08c76a4342cfb4b3d772f6880ba0b8f3153b246 (patch) | |
tree | e2ba9ef2f670d01cf700a732d36050fe3ce63774 /lib/twitterapi.php | |
parent | 522008dee570aafcc844bf123d25203c7d9c3ebc (diff) | |
parent | eb667d09d9c6ef5a1465a5f8d824661a9387a4da (diff) |
Merge branch '0.9.x' of git@gitorious.org:laconica/mainline into 0.9.x
Conflicts:
classes/laconica.ini
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r-- | lib/twitterapi.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/twitterapi.php b/lib/twitterapi.php index c8099978f..9055d8b98 100644 --- a/lib/twitterapi.php +++ b/lib/twitterapi.php @@ -274,11 +274,12 @@ class TwitterapiAction extends Action $enclosures = 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; $enclosures[] = $enclosure; } } |