[PLUGIN][DeleteNote] Support ActivityPub

This commit is contained in:
2021-12-28 16:07:35 +00:00
parent 9585472679
commit 3e83387e98
7 changed files with 68 additions and 26 deletions

View File

@@ -143,7 +143,7 @@ class Activity extends Model
*/
public static function toJson(mixed $object, ?int $options = null): string
{
if ($object::class !== 'App\Entity\Activity') {
if ($object::class !== GSActivity::class) {
throw new InvalidArgumentException('First argument type is Activity');
}