summaryrefslogtreecommitdiff
path: root/lib/apiaction.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-03 09:53:16 -0800
committerZach Copley <zach@status.net>2010-03-03 09:53:16 -0800
commit8a58b52a680ffbb162a6f5af9029573f18ba7320 (patch)
treea7d22c9edad378411c5a965135f0dac33d5cfbd1 /lib/apiaction.php
parent49a872b56f82a3f1ba59f0751c11dfe7754393dd (diff)
parent4aa516db454f56c5f6307b17503b6c524bd918ae (diff)
Merge branch 'twitter-facebook-mods'
* twitter-facebook-mods: Make Facebook plugin look for API key and secret before doing anything Show global key and secret, if defined, in Twitter bridge admin panel Remove double word from Twitter bridge README - Have Twitter bridge check for a global key and secret if it can't stupid mistake... let's not talk about this. Updated some references to the long gnone "isEnclosure" function to the new "getEnclosure" Update Facebook plugin README with info about new admin panel Initial Facebook admin panel Some wording / spelling fixes - Make 'Sign in with Twitter' optional Remove un-needed config variable for enabling/disabling Twitter integration Initial Twitter bridge admin panel Upgrade XML output scrubbing to better deal with newline and a few other chars
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..eef0ba637 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 ($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;
$twitter_status['attachments'][] = $enclosure;
}
}