Fix: "unsearchable" is now stored

This commit is contained in:
Michael 2024-03-15 06:07:47 +00:00
parent 57187f26ae
commit eaddf5318a
7 changed files with 25 additions and 6 deletions

View file

@ -376,6 +376,9 @@ class APContact
}
$apcontact['discoverable'] = JsonLD::fetchElement($compacted, 'toot:discoverable', '@value');
if (is_null($apcontact['discoverable']) && ($apcontact['type'] == 'Application')) {
$apcontact['discoverable'] = false;
}
if (!empty($apcontact['photo'])) {
$apcontact['photo'] = Network::addBasePath($apcontact['photo'], $apcontact['url']);