diff options
| author | winter | 2024-12-17 20:43:44 +0000 |
|---|---|---|
| committer | winter | 2024-12-17 20:43:44 +0000 |
| commit | 10793d22df72f12f2f14c730c09b5018b5b6e63a (patch) | |
| tree | ea3cf7cf1461b5b02d989d0077a154b6408948e8 /Digitigrade/Model/Actor.php | |
| parent | 12d3fe4509dda610e6b7adb120dc0530081c6768 (diff) | |
bugfixing
Diffstat (limited to 'Digitigrade/Model/Actor.php')
| -rw-r--r-- | Digitigrade/Model/Actor.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Digitigrade/Model/Actor.php b/Digitigrade/Model/Actor.php index 5974f40..2d5eba7 100644 --- a/Digitigrade/Model/Actor.php +++ b/Digitigrade/Model/Actor.php @@ -34,6 +34,9 @@ class Actor extends PushableModel { bool $automated = false, bool $requestToFollow = true // setting this true by default as i think it's better for privacy ): self { + if (self::findLocalByHandle($handle) != null) { + throw new \RuntimeException('an actor with that local handle already exists!'); + } $actor = new self(); $actor->uri = path_to_uri("/user/$handle"); $actor->isLocal = true; |
