forked from GNUsocial/gnu-social
Fix more fatal errors in queue edge cases
This commit is contained in:
parent
e5eca9bd2c
commit
4d3808a815
@ -298,7 +298,7 @@ class ApiAction extends Action
|
||||
}
|
||||
}
|
||||
|
||||
if ($include_user) {
|
||||
if ($include_user && $profile) {
|
||||
# Don't get notice (recursive!)
|
||||
$twitter_user = $this->twitterUserArray($profile, false);
|
||||
$twitter_status['user'] = $twitter_user;
|
||||
|
@ -40,7 +40,7 @@ class JabberQueueHandler extends QueueHandler
|
||||
try {
|
||||
return jabber_broadcast_notice($notice);
|
||||
} catch (XMPPHP_Exception $e) {
|
||||
$this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
|
||||
common_log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ class OmbQueueHandler extends QueueHandler
|
||||
function handle($notice)
|
||||
{
|
||||
if ($this->is_remote($notice)) {
|
||||
$this->log(LOG_DEBUG, 'Ignoring remote notice ' . $notice->id);
|
||||
common_log(LOG_DEBUG, 'Ignoring remote notice ' . $notice->id);
|
||||
return true;
|
||||
} else {
|
||||
require_once(INSTALLDIR.'/lib/omb.php');
|
||||
|
@ -38,7 +38,7 @@ class PublicQueueHandler extends QueueHandler
|
||||
try {
|
||||
return jabber_public_notice($notice);
|
||||
} catch (XMPPHP_Exception $e) {
|
||||
$this->log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
|
||||
common_log(LOG_ERR, "Got an XMPPHP_Exception: " . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user