Added comment
This commit is contained in:
parent
9d87bc94a6
commit
a037427a54
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ class Profile extends BaseModule
|
||||||
if (ActivityPub::isRequest()) {
|
if (ActivityPub::isRequest()) {
|
||||||
$user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]);
|
$user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]);
|
||||||
if (DBA::isResult($user)) {
|
if (DBA::isResult($user)) {
|
||||||
|
// The function returns an empty array when the account is removed, expired or blocked
|
||||||
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
$data = ActivityPub\Transmitter::getProfile($user['uid']);
|
||||||
if (!empty($data)) {
|
if (!empty($data)) {
|
||||||
System::jsonExit($data, 'application/activity+json');
|
System::jsonExit($data, 'application/activity+json');
|
||||||
|
|
Loading…
Reference in a new issue