diff options
| author | winter | 2025-01-14 21:39:11 +0000 |
|---|---|---|
| committer | winter | 2025-01-14 21:39:11 +0000 |
| commit | 85038ca07c9909eb6503d5b0e529a2cc080d2a06 (patch) | |
| tree | b21b955f28d1d9245d53ad630a2ed1eedb63ebce /Digitigrade/Model/Actor.php | |
| parent | 27d0d594695f77f3280f587cf5d7ae41317dc7c5 (diff) | |
fix bugs in note federation
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)); } |
