[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

@@ -308,7 +308,7 @@ class Note extends Model
public static function toJson(mixed $object, ?int $options = null): string
{
if ($object::class !== GSNote::class) {
throw new InvalidArgumentException('First argument type is Note');
throw new InvalidArgumentException('First argument type must be a Note.');
}
$attr = [