[PLUGIN][ActivityPub][Postman] JSON_UNESCAPED_SLASHES

Only record webfinger matches for acct
This commit is contained in:
2022-02-25 13:52:21 +00:00
parent 26a50618b0
commit b630d530f4
5 changed files with 11 additions and 9 deletions

View File

@@ -337,7 +337,7 @@ class Note extends Model
* @throws InvalidArgumentException
* @throws ServerException
*/
public static function toJson(mixed $object, ?int $options = null): string
public static function toJson(mixed $object, int $options = \JSON_UNESCAPED_SLASHES): string
{
if ($object::class !== GSNote::class) {
throw new InvalidArgumentException('First argument type must be a Note.');