pull/1987/merge
Dave MacFarlane 2025-10-03 20:26:12 +00:00 zatwierdzone przez GitHub
commit 92007fe038
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -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;
});
}