Revert "fix: disassociate from SDIR"

This reverts commit a62517f53d.
main
gravel 2 weeks ago
parent a62517f53d
commit 6f005677cb

@ -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()
);
});

@ -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;
}

@ -98,6 +98,12 @@
target="_blank"
title="Closed groups curated by community moderators"
>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
href="https://oxen.directory/"
class="footer__nav-target"

@ -38,6 +38,7 @@ displays information about them as a static HTML page.</p>
<h2 id="which-sources-do-you-crawl-">Which sources do you crawl?</h2>
<p>Communities displayed come from a variety of sources:</p>
<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://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>

Loading…
Cancel
Save