From 817e1507edacc925cca67705ddb0589cca9eb64c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 27 Aug 2011 10:58:11 -0400 Subject: [PATCH] Catch missing profile in realtime server --- plugins/Realtime/RealtimePlugin.php | 7 +++++++ 1 file changed, 7 insertions(+) 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)) { -- 2.39.5