]> git.mxchange.org Git - friendica.git/commitdiff
Added comment
authorMichael <heluecht@pirati.ca>
Sat, 14 Sep 2019 07:17:06 +0000 (07:17 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 14 Sep 2019 07:17:06 +0000 (07:17 +0000)
src/Module/Profile.php

index 0d14adcf90c9327617e3ebbb0498061599a68817..d103c614e67ebae35ebbcffabd89713421d65cdf 100644 (file)
@@ -58,6 +58,7 @@ class Profile extends BaseModule
                if (ActivityPub::isRequest()) {
                        $user = DBA::selectFirst('user', ['uid'], ['nickname' => self::$which]);
                        if (DBA::isResult($user)) {
+                               // The function returns an empty array when the account is removed, expired or blocked
                                $data = ActivityPub\Transmitter::getProfile($user['uid']);
                                if (!empty($data)) {
                                        System::jsonExit($data, 'application/activity+json');