Browse Source

Added comment

pull/7626/head
Michael 2 years ago
parent
commit
a037427a54
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/Module/Profile.php

+ 1
- 0
src/Module/Profile.php View 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');


Loading…
Cancel
Save