We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit dbb7324b authored by Evan Prodromou's avatar Evan Prodromou

test for missing profile in ostatus queue handler

parent 2f1953ca
...@@ -53,6 +53,13 @@ class OStatusQueueHandler extends QueueHandler ...@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment