Commit 817e1507 authored by Evan Prodromou's avatar Evan Prodromou

Catch missing profile in realtime server

parent 507fd9bd
......@@ -172,6 +172,13 @@ class RealtimePlugin extends Plugin
// Add to the author's timeline
try {
$profile = $notice->getProfile();
} catch (Exception $e) {
$this->log(LOG_ERR, $e->getMessage());
return true;
}
$user = User::staticGet('id', $notice->profile_id);
if (!empty($user)) {
......
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