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)) {