From a62517f53d27f693761e8034175931560f450a2c Mon Sep 17 00:00:00 2001 From: gravel Date: Wed, 1 May 2024 20:47:42 +0000 Subject: [PATCH] fix: disassociate from SDIR --- output/main.js | 8 ++++---- php/servers/sources.php | 16 +--------------- sites/+components/footer.php | 6 ------ sites/about/index.php | 1 - 4 files changed, 5 insertions(+), 26 deletions(-) diff --git a/output/main.js b/output/main.js index 938ef91..d42d4f3 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 and session.directory compile lists of - Session Closed Groups and Communities, and are linked - in recognition of their importance. + `Lokinet Gitea compiles lists of + Session Closed Groups and Communities, and is linked + in recognition of its importance. However, sessioncommunities.online already includes Communities - from these sources on this page. + from this source on this page. `.replace(/\s+/g, " ").trim() ); }); diff --git a/php/servers/sources.php b/php/servers/sources.php index 9143bac..fc11c11 100644 --- a/php/servers/sources.php +++ b/php/servers/sources.php @@ -253,7 +253,6 @@ 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; @@ -274,9 +273,6 @@ 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'); @@ -294,9 +290,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); + $this->contents_simp; } private static function source_cache_file(string $source_key) { @@ -343,18 +337,10 @@ } 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 03453dc..e5d028c 100644 --- a/sites/+components/footer.php +++ b/sites/+components/footer.php @@ -98,12 +98,6 @@ 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: