Merge branch 'master' into 0.8.x

Conflicts:
	lib/mail.php
	lib/rssaction.php
	lib/twitterapi.php
This commit is contained in:
Evan Prodromou 2009-08-11 10:23:11 -04:00
commit 2d29800b6f
2 changed files with 14 additions and 14 deletions

View File

@ -692,11 +692,11 @@ function mail_facebook_app_removed($user)
$site_name = common_config('site', 'name'); $site_name = common_config('site', 'name');
$subject = sprintf( $subject = sprintf(
_('Your %1$s Facebook application access has been disabled.', _('Your %1\$s Facebook application access has been disabled.',
$site_name)); $site_name));
$body = sprintf(_("Hi, %1\$s. We're sorry to inform you that we are " . $body = sprintf(_("Hi, %1\$s. We're sorry to inform you that we are " .
'unable to update your Facebook status from %2$s, and have disabled ' . 'unable to update your Facebook status from %2\$s, and have disabled ' .
'the Facebook application for your account. This may be because ' . 'the Facebook application for your account. This may be because ' .
'you have removed the Facebook application\'s authorization, or ' . 'you have removed the Facebook application\'s authorization, or ' .
'have deleted your Facebook account. You can re-enable the ' . 'have deleted your Facebook account. You can re-enable the ' .

View File

@ -188,7 +188,10 @@ class TwitterapiAction extends Action
// Enclosures // Enclosures
$attachments = $notice->attachments(); $attachments = $notice->attachments();
$enclosures = array();
if (!empty($attachments)) {
$twitter_status['attachments'] = array();
foreach ($attachments as $attachment) { foreach ($attachments as $attachment) {
if ($attachment->isEnclosure()) { if ($attachment->isEnclosure()) {
@ -196,12 +199,9 @@ class TwitterapiAction extends Action
$enclosure['url'] = $attachment->url; $enclosure['url'] = $attachment->url;
$enclosure['mimetype'] = $attachment->mimetype; $enclosure['mimetype'] = $attachment->mimetype;
$enclosure['size'] = $attachment->size; $enclosure['size'] = $attachment->size;
$enclosures[] = $enclosure; $twitter_status['attachments'][] = $enclosure;
} }
} }
if (!empty($enclosures)) {
$twitter_status['attachments'] = $enclosures;
} }
if ($include_user) { if ($include_user) {