diff --git a/app/Http/Controllers/InstanceActorController.php b/app/Http/Controllers/InstanceActorController.php index 136a2ede5..52d8a5cc6 100644 --- a/app/Http/Controllers/InstanceActorController.php +++ b/app/Http/Controllers/InstanceActorController.php @@ -12,7 +12,7 @@ class InstanceActorController extends Controller { $res = Cache::rememberForever(InstanceActor::PROFILE_KEY, function() { $res = (new InstanceActor())->first()->getActor(); - return json_encode($res); + return json_encode($res, JSON_UNESCAPED_SLASHES); }); return response($res)->header('Content-Type', 'application/json'); } diff --git a/app/Models/InstanceActor.php b/app/Models/InstanceActor.php index 00eacfe61..4636b10e9 100644 --- a/app/Models/InstanceActor.php +++ b/app/Models/InstanceActor.php @@ -11,7 +11,7 @@ class InstanceActor extends Model const PROFILE_BASE = '/i/actor'; const KEY_ID = '/i/actor#main-key'; - const PROFILE_KEY = 'federation:_v2:instance:actor:profile'; + const PROFILE_KEY = 'federation:_v3:instance:actor:profile'; const PKI_PUBLIC = 'federation:_v1:instance:actor:profile:pki_public'; const PKI_PRIVATE = 'federation:_v1:instance:actor:profile:pki_private';