2022.09-rc
Michael 2019-09-14 07:17:06 +00:00
rodzic 9d87bc94a6
commit a037427a54
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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