mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update InstanceActorController, improve json seralization by not escaping slashes
This commit is contained in:
parent
4505d1f0f9
commit
0a8eb81bf0
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class InstanceActorController extends Controller
|
||||||
{
|
{
|
||||||
$res = Cache::rememberForever(InstanceActor::PROFILE_KEY, function() {
|
$res = Cache::rememberForever(InstanceActor::PROFILE_KEY, function() {
|
||||||
$res = (new InstanceActor())->first()->getActor();
|
$res = (new InstanceActor())->first()->getActor();
|
||||||
return json_encode($res);
|
return json_encode($res, JSON_UNESCAPED_SLASHES);
|
||||||
});
|
});
|
||||||
return response($res)->header('Content-Type', 'application/json');
|
return response($res)->header('Content-Type', 'application/json');
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ class InstanceActor extends Model
|
||||||
|
|
||||||
const PROFILE_BASE = '/i/actor';
|
const PROFILE_BASE = '/i/actor';
|
||||||
const KEY_ID = '/i/actor#main-key';
|
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_PUBLIC = 'federation:_v1:instance:actor:profile:pki_public';
|
||||||
const PKI_PRIVATE = 'federation:_v1:instance:actor:profile:pki_private';
|
const PKI_PRIVATE = 'federation:_v1:instance:actor:profile:pki_private';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue