diff options
Diffstat (limited to 'Digitigrade/Model/Actor.php')
| -rw-r--r-- | Digitigrade/Model/Actor.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php index c8cc25e..0f87ed3 100644 --- a/Digitigrade/Model/Actor.php +++ b/Digitigrade/Model/Actor.php @@ -215,6 +215,10 @@ class Actor extends PushableModel implements RpcReceiver { } 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"); + } return Instance::findByHostname(hostname_from_uri($this->uri)); } |
