aboutsummaryrefslogtreecommitdiffhomepage
path: root/Digitigrade/Model/Actor.php
diff options
context:
space:
mode:
authorwinter2025-01-14 21:39:11 +0000
committerwinter2025-01-14 21:39:11 +0000
commit85038ca07c9909eb6503d5b0e529a2cc080d2a06 (patch)
treeb21b955f28d1d9245d53ad630a2ed1eedb63ebce /Digitigrade/Model/Actor.php
parent27d0d594695f77f3280f587cf5d7ae41317dc7c5 (diff)
fix bugs in note federation
Diffstat (limited to 'Digitigrade/Model/Actor.php')
-rw-r--r--Digitigrade/Model/Actor.php4
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));
}