Honour Pleroma's "invisible" actor flag

This commit is contained in:
nobody 2022-03-07 13:54:11 -08:00
parent f729b9be8a
commit 431f144897
2 changed files with 9 additions and 2 deletions

View file

@ -2243,9 +2243,14 @@ class Activity
}
$hidden = false;
// Mastodon style hidden flag
if (array_key_exists('discoverable', $person_obj) && (!intval($person_obj['discoverable']))) {
$hidden = true;
}
// Pleroma style hidden flag
if (array_key_exists('invisible', $person_obj) && (!intval($person_obj['invisible']))) {
$hidden = true;
}
$links = false;
$profile = false;

View file

@ -20,8 +20,10 @@ class Sites extends Controller
}
$sql_extra = (($_REQUEST['project']) ? " and site_project = '" . escape_tags(protect_sprintf(dbesc($_REQUEST['project']))) . "' " : "");
$desc = t('This page provides information about related projects and websites that are currently known to this system. These are a small fraction of the thousands of websites and dozens of projects and providers which make up the fediverse.');
if (isset($_REQUEST['search'])) {
$sql_extra .= ""; //@TODO
}
$desc = t('This page provides information about related projects and websites that are currently known to this system. These are a small fraction of the thousands of websites and dozens of projects and providers which participate in this communications network.');
$blocked = LibBlock::fetch($channel['channel_id'], BLOCKTYPE_SERVER);