test for missing profile in ostatus queue handler
This commit is contained in:
parent
2f1953ca25
commit
dbb7324b25
@ -53,6 +53,13 @@ class OStatusQueueHandler extends QueueHandler
|
|||||||
$this->notice = $notice;
|
$this->notice = $notice;
|
||||||
$this->user = User::staticGet('id', $notice->profile_id);
|
$this->user = User::staticGet('id', $notice->profile_id);
|
||||||
|
|
||||||
|
try {
|
||||||
|
$profile = $this->notice->getProfile();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
common_log(LOG_ERR, "Can't get profile for notice; skipping: " . $e->getMessage());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
$this->pushUser();
|
$this->pushUser();
|
||||||
|
|
||||||
foreach ($notice->getGroups() as $group) {
|
foreach ($notice->getGroups() as $group) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user