kopia lustrzana https://github.com/nextcloud/social
Merge cfff2ca907
into fc0946db6d
commit
92007fe038
|
@ -81,6 +81,17 @@ class ActivityPubController extends Controller {
|
|||
$this->streamService = $streamService;
|
||||
$this->configService = $configService;
|
||||
$this->logger = $logger;
|
||||
|
||||
$this->registerResponder('activity+json', function($response) {
|
||||
$resp = new \OCP\AppFramework\Http\JSONResponse($response->getData());
|
||||
$resp->addHeader('Content-Type', 'application/activity+json; charset=utf-8');
|
||||
return $resp;
|
||||
});
|
||||
$this->registerResponder('ld+json; profile="https://www.w3.org/ns/activitystreams"', function($response) {
|
||||
$resp = new \OCP\AppFramework\Http\JSONResponse($response->getData());
|
||||
$resp->addHeader('Content-Type', 'ld+json; profile="https://www.w3.org/ns/activitystreams"; charset=utf-8');
|
||||
return $resp;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue