Avoid returning of the actor when requesting friendica/json
This commit is contained in:
parent
797db32992
commit
51b2bf6f70
1 changed files with 6 additions and 6 deletions
|
@ -112,7 +112,12 @@ class Friendica extends BaseModule
|
||||||
|
|
||||||
protected function rawContent(array $request = [])
|
protected function rawContent(array $request = [])
|
||||||
{
|
{
|
||||||
if (ActivityPub::isRequest()) {
|
// @TODO: Replace with parameter from router
|
||||||
|
if (DI::args()->getArgc() <= 1 || (DI::args()->getArgv()[1] !== 'json')) {
|
||||||
|
if (!ActivityPub::isRequest()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$data = ActivityPub\Transmitter::getProfile(0);
|
$data = ActivityPub\Transmitter::getProfile(0);
|
||||||
header('Access-Control-Allow-Origin: *');
|
header('Access-Control-Allow-Origin: *');
|
||||||
|
@ -123,11 +128,6 @@ class Friendica extends BaseModule
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// @TODO: Replace with parameter from router
|
|
||||||
if (DI::args()->getArgc() <= 1 || (DI::args()->getArgv()[1] !== 'json')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
$register_policies = [
|
$register_policies = [
|
||||||
|
|
Loading…
Reference in a new issue