mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
Honour Pleroma's "invisible" actor flag
This commit is contained in:
parent
f729b9be8a
commit
431f144897
2 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue