[PLUGIN][ActivityPub][Inbox] Accept Follow Activity

Improve how Core Activity is handled in general
This commit is contained in:
2022-01-02 20:37:15 +00:00
parent afb7ae0f75
commit def5f36c25
18 changed files with 336 additions and 140 deletions

View File

@@ -177,7 +177,7 @@ class Actor extends Model
public static function toJson(mixed $object, ?int $options = null): string
{
if ($object::class !== GSActor::class) {
throw new InvalidArgumentException('First argument type is Actor');
throw new InvalidArgumentException('First argument type must be an Actor.');
}
$rsa = ActivitypubRsa::getByActor($object);
$public_key = $rsa->getPublicKey();