summaryrefslogtreecommitdiff
path: root/lib/twitterapi.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-07-14 10:43:13 -0700
committerZach Copley <zach@controlyourself.ca>2009-07-14 10:43:13 -0700
commitb05b998d68ab2d4802ed4ec96abec59332ffe354 (patch)
tree13b71eaf106b269f06dc29b221418f441067995d /lib/twitterapi.php
parent783231c32739cf892cc23a11376c0f67810feb69 (diff)
parentc97957cf3e42b88f345408cd6d399bfe2da27f84 (diff)
Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x
* '0.8.x' of git@gitorious.org:laconica/mainline: HTML "File"/attachments should probably not be considered enclosures. Moved the decision logic as to whether an attachment should be an enclosure to the File class
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r--lib/twitterapi.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/twitterapi.php b/lib/twitterapi.php
index ce188e00d..655b6c777 100644
--- a/lib/twitterapi.php
+++ b/lib/twitterapi.php
@@ -218,7 +218,7 @@ class TwitterapiAction extends Action
if($attachments){
$entry['enclosures']=array();
foreach($attachments as $attachment){
- if (isset($attachment->filename)) {
+ if ($attachment->isEnclosure()) {
$enclosure=array();
$enclosure['url']=$attachment->url;
$enclosure['mimetype']=$attachment->mimetype;