From 8b4bac25d588720f88d178cfd71fc8a8361e2ff5 Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 4 May 2025 18:47:22 +0100 Subject: fix interacting with notes from instances with no instance metadata --- Digitigrade/Model/Actor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Digitigrade') diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php index d18c1f5..ffaf4e8 100644 --- a/Digitigrade/Model/Actor.php +++ b/Digitigrade/Model/Actor.php @@ -359,7 +359,7 @@ class Actor extends PushableModel implements RpcReceiver { return $relation != null; } - public function findHomeInstance(): Instance { + public function findHomeInstance(): ?Instance { if ($this->isLocal) { // can't do this because we don't keep track of ourself in the instance table throw new \RuntimeException("attempted to find the instance of a local actor"); -- cgit v1.3