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

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