0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Used more specific Content-Type for ActivityPub

no-issue
This commit is contained in:
Fabien O'Carroll 2024-04-23 11:09:14 +07:00 committed by Fabien 'egg' O'Carroll
parent da2ba37f63
commit 2deee35673

View file

@ -10,7 +10,7 @@ export class ActivityPubController {
) {}
@Header('Cache-Control', 'no-store')
@Header('Content-Type', 'application/ld+json')
@Header('Content-Type', 'application/activity+json')
@Roles(['Anon'])
@Get('actor/:id')
async getActor(@Param('id') id: unknown) {
@ -21,7 +21,7 @@ export class ActivityPubController {
}
@Header('Cache-Control', 'no-store')
@Header('Content-Type', 'application/ld+json')
@Header('Content-Type', 'application/activity+json')
@Roles(['Anon'])
@Get('outbox/:owner')
async getOutbox(@Param('owner') owner: unknown) {