diff --git a/output/main.js b/output/main.js index d42d4f3..938ef91 100644 --- a/output/main.js +++ b/output/main.js @@ -142,11 +142,11 @@ function addInformativeInteractions() { const moreSitesInfoButton = document.getElementById('more-sites-info-button'); moreSitesInfoButton?.addEventListener('click', () => { alert( - `Lokinet Gitea compiles lists of - Session Closed Groups and Communities, and is linked - in recognition of its importance. + `Lokinet Gitea and session.directory compile lists of + Session Closed Groups and Communities, and are linked + in recognition of their importance. However, sessioncommunities.online already includes Communities - from this source on this page. + from these sources on this page. `.replace(/\s+/g, " ").trim() ); }); diff --git a/php/servers/sources.php b/php/servers/sources.php index fc11c11..9143bac 100644 --- a/php/servers/sources.php +++ b/php/servers/sources.php @@ -253,6 +253,7 @@ 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; @@ -273,6 +274,9 @@ log_info("Requesting Lokilocker Mods Open Group list..."); $this->contents_loki = CommunitySources::fetch_source('LOKI'); + log_info("Requesting session.directory list..."); + $this->contents_sdir = CommunitySources::fetch_source('SDIR-JSON'); + log_info("Requesting FreeArkham.cc list..."); $this->contents_fark = CommunitySources::fetch_source('FARK'); @@ -290,7 +294,9 @@ $this->contents_asgl . $this->contents_fark . $this->contents_loki . - $this->contents_simp; + $this->contents_simp . + // Slashes are escaped when served, unescape them + str_replace("\\/", "/", $this->contents_sdir); } private static function source_cache_file(string $source_key) { @@ -337,10 +343,18 @@ } private function process_sources(): bool { + $source_sdir = SDIRCommunitySource::from_contents($this->contents_sdir); + $source_asgl = ASGLCommunitySource::from_contents($this->contents_asgl); + $source_sdir && $this->add_tags($source_sdir->get_tags()); + $source_asgl && $this->add_tags($source_asgl->get_tags()); + if (!$source_sdir) { + return false; + } + if (!$source_asgl) { return false; } diff --git a/sites/+components/footer.php b/sites/+components/footer.php index e5d028c..03453dc 100644 --- a/sites/+components/footer.php +++ b/sites/+components/footer.php @@ -98,6 +98,12 @@ target="_blank" title="Closed groups curated by community moderators" >Closed Groupssession.directory (NSFW)

Which sources do you crawl?

Communities displayed come from a variety of sources: