mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
The access to the profile and the list of followers/followings can now be restricted
This commit is contained in:
parent
d84866cf8c
commit
26aa38341f
3 changed files with 52 additions and 8 deletions
|
@ -84,7 +84,7 @@ class Profile extends BaseProfile
|
|||
$user = $this->database->selectFirst('user', ['uid'], ['nickname' => $this->parameters['nickname'] ?? '', 'account_removed' => false]);
|
||||
if ($user) {
|
||||
try {
|
||||
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
||||
$data = ActivityPub\Transmitter::getProfile($user['uid'], !ActivityPub::isAcceptedRequester($user['uid']));
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Cache-Control: max-age=23200, stale-while-revalidate=23200');
|
||||
System::jsonExit($data, 'application/activity+json');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue