Add SimplifiedPrivacy.com source

dev
gravel 5 months ago
parent 91a6dda3f7
commit c8fc56b9a2
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -26,6 +26,8 @@ Communities displayed come from a variety of sources:
- <https://session.directory/>,
- <https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups>,
- <https://github.com/GNU-Linux-libre/Awesome-Session-Group-List>,
- <https://freearkham.cc/>,
- <https://simplifiedprivacy.com/techgroups>
- [a few hardcoded servers found on the internet](php/servers/known-servers.php).
## Contributing

@ -226,13 +226,15 @@
'SDIR-BASE' => 'https://session.directory/',
'SDIR-PATTERN' => '/view_session_group_user_lokinet\.php\?id=\d+/',
'SDIR-JSON' => 'https://session.directory/scrape.php',
'FARK' => 'https://freearkham.cc/'
'FARK' => 'https://freearkham.cc/',
'SIMP' => 'https://simplifiedprivacy.com/techgroups',
);
private readonly string $contents_asgl;
private readonly string $contents_loki;
private readonly string $contents_sdir;
private readonly string $contents_fark;
private readonly string $contents_simp;
private readonly string $contents_aggregated;
/**
@ -257,6 +259,9 @@
log_info("Requesting FreeArkham.cc list...");
$this->contents_fark = CommunitySources::fetch_source('FARK');
log_info("Requesting SimplifiedPrivacy.com list...");
$this->contents_simp = CommunitySources::fetch_source('SIMP');
log_info("Parsing extra information...");
if (!$this->process_sources()) {
log_error("Could not parse extra information from one or more sources.");
@ -268,6 +273,7 @@
$this->contents_asgl .
$this->contents_fark .
$this->contents_loki .
$this->contents_simp .
// Slashes are escaped when served, unescape them
str_replace("\\/", "/", $this->contents_sdir);
}

Loading…
Cancel
Save