forked from mirror/pixelfed
commit
0579af2748
2 changed files with 5 additions and 4 deletions
|
@ -27,6 +27,7 @@
|
|||
- Updated ApiV1Controller, fix private status replies returning 404. ([73226360](https://github.com/pixelfed/pixelfed/commit/73226360))
|
||||
- Updated StatusService, use BookmarkService for bookmarked state. ([a7d71551](https://github.com/pixelfed/pixelfed/commit/a7d71551))
|
||||
- Updated Apis, added ReblogService to improve reblogged state for api entities ([6cfd6be5](https://github.com/pixelfed/pixelfed/commit/6cfd6be5))
|
||||
- Updated InstanceActorController, fix content-type header. ([21792246](https://github.com/pixelfed/pixelfed/commit/21792246))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)
|
||||
|
|
|
@ -14,7 +14,7 @@ class InstanceActorController extends Controller
|
|||
$res = (new InstanceActor())->first()->getActor();
|
||||
return json_encode($res, JSON_UNESCAPED_SLASHES);
|
||||
});
|
||||
return response($res)->header('Content-Type', 'application/json');
|
||||
return response($res)->header('Content-Type', 'application/activity+json');
|
||||
}
|
||||
|
||||
public function inbox()
|
||||
|
@ -24,14 +24,14 @@ class InstanceActorController extends Controller
|
|||
|
||||
public function outbox()
|
||||
{
|
||||
$res = [
|
||||
$res = json_encode([
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'id' => config('app.url') . '/i/actor/outbox',
|
||||
'type' => 'OrderedCollection',
|
||||
'totalItems' => 0,
|
||||
'first' => config('app.url') . '/i/actor/outbox?page=true',
|
||||
'last' => config('app.url') . '/i/actor/outbox?min_id=0page=true'
|
||||
];
|
||||
return response()->json($res);
|
||||
], JSON_UNESCAPED_SLASHES);
|
||||
return response($res)->header('Content-Type', 'application/activity+json');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue