From: Evan Prodromou Date: Sat, 27 Aug 2011 14:58:11 +0000 (-0400) Subject: Catch missing profile in realtime server X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=817e1507edacc925cca67705ddb0589cca9eb64c;p=quix0rs-gnu-social.git Catch missing profile in realtime server --- diff --git a/plugins/Realtime/RealtimePlugin.php b/plugins/Realtime/RealtimePlugin.php index 6011bbc035..d2172dcf8d 100644 --- a/plugins/Realtime/RealtimePlugin.php +++ b/plugins/Realtime/RealtimePlugin.php @@ -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)) {