fix: disassociate from SDIR

main
gravel 2 months ago
parent 218e9ac4f3
commit a62517f53d

@ -142,11 +142,11 @@ function addInformativeInteractions() {
const moreSitesInfoButton = document.getElementById('more-sites-info-button'); const moreSitesInfoButton = document.getElementById('more-sites-info-button');
moreSitesInfoButton?.addEventListener('click', () => { moreSitesInfoButton?.addEventListener('click', () => {
alert( alert(
`Lokinet Gitea and session.directory compile lists of `Lokinet Gitea compiles lists of
Session Closed Groups and Communities, and are linked Session Closed Groups and Communities, and is linked
in recognition of their importance. in recognition of its importance.
However, sessioncommunities.online already includes Communities However, sessioncommunities.online already includes Communities
from these sources on this page. from this source on this page.
`.replace(/\s+/g, " ").trim() `.replace(/\s+/g, " ").trim()
); );
}); });

@ -253,7 +253,6 @@
private readonly string $contents_asgl; private readonly string $contents_asgl;
private readonly string $contents_loki; private readonly string $contents_loki;
private readonly string $contents_sdir;
private readonly string $contents_fark; private readonly string $contents_fark;
private readonly string $contents_simp; private readonly string $contents_simp;
private readonly string $contents_aggregated; private readonly string $contents_aggregated;
@ -274,9 +273,6 @@
log_info("Requesting Lokilocker Mods Open Group list..."); log_info("Requesting Lokilocker Mods Open Group list...");
$this->contents_loki = CommunitySources::fetch_source('LOKI'); $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..."); log_info("Requesting FreeArkham.cc list...");
$this->contents_fark = CommunitySources::fetch_source('FARK'); $this->contents_fark = CommunitySources::fetch_source('FARK');
@ -294,9 +290,7 @@
$this->contents_asgl . $this->contents_asgl .
$this->contents_fark . $this->contents_fark .
$this->contents_loki . $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) { private static function source_cache_file(string $source_key) {
@ -343,18 +337,10 @@
} }
private function process_sources(): bool { private function process_sources(): bool {
$source_sdir = SDIRCommunitySource::from_contents($this->contents_sdir);
$source_asgl = ASGLCommunitySource::from_contents($this->contents_asgl); $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()); $source_asgl && $this->add_tags($source_asgl->get_tags());
if (!$source_sdir) {
return false;
}
if (!$source_asgl) { if (!$source_asgl) {
return false; return false;
} }

@ -98,12 +98,6 @@
target="_blank" target="_blank"
title="Closed groups curated by community moderators" title="Closed groups curated by community moderators"
>Closed Groups</a >Closed Groups</a
><a
href="https://session.directory/"
class="footer__nav-target"
target="_blank"
title="User-submitted closed groups, communities and user profiles. Not safe for work."
>session.directory (NSFW)</a
><a ><a
href="https://oxen.directory/" href="https://oxen.directory/"
class="footer__nav-target" class="footer__nav-target"

@ -38,7 +38,6 @@ displays information about them as a static HTML page.</p>
<h2 id="which-sources-do-you-crawl-">Which sources do you crawl?</h2> <h2 id="which-sources-do-you-crawl-">Which sources do you crawl?</h2>
<p>Communities displayed come from a variety of sources:</p> <p>Communities displayed come from a variety of sources:</p>
<ul> <ul>
<li><a href="https://session.directory/">https://session.directory/</a>,</li>
<li><a href="https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups">https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups</a>,</li> <li><a href="https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups">https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups</a>,</li>
<li><a href="https://github.com/GNU-Linux-libre/Awesome-Session-Group-List">https://github.com/GNU-Linux-libre/Awesome-Session-Group-List</a>,</li> <li><a href="https://github.com/GNU-Linux-libre/Awesome-Session-Group-List">https://github.com/GNU-Linux-libre/Awesome-Session-Group-List</a>,</li>
<li><a href="https://freearhkam.cc">https://freearhkam.cc</a>,</li> <li><a href="https://freearhkam.cc">https://freearhkam.cc</a>,</li>

Loading…
Cancel
Save