From c18ef308d8b50295554be40986f10c221a963feb Mon Sep 17 00:00:00 2001 From: gravel Date: Mon, 26 Aug 2024 09:24:50 +0000 Subject: [PATCH] feat: add landedin.space as source --- README.md | 5 +++-- php/servers/sources.php | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 76ec281..15991bd 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,9 @@ Communities displayed come from a variety of sources: - , - , - , -- -- [a few hardcoded servers found on the internet](php/servers/known-servers.php). +- , +- , +- a few servers found on the internet. Have a list we don't know about? [Shoot us a message](#contact-us). diff --git a/php/servers/sources.php b/php/servers/sources.php index 9143bac..752763f 100644 --- a/php/servers/sources.php +++ b/php/servers/sources.php @@ -249,6 +249,7 @@ 'SDIR-JSON' => 'https://session.directory/scrape.php', 'FARK' => 'https://freearkham.cc/', 'SIMP' => 'https://simplifiedprivacy.com/techgroups', + 'LISP' => 'https://junk.landedin.space/communities.html', ); private readonly string $contents_asgl; @@ -256,6 +257,7 @@ private readonly string $contents_sdir; private readonly string $contents_fark; private readonly string $contents_simp; + private readonly string $contents_lisp; private readonly string $contents_aggregated; /** @@ -283,6 +285,9 @@ log_info("Requesting SimplifiedPrivacy.com list..."); $this->contents_simp = CommunitySources::fetch_source('SIMP'); + log_info("Requesting landedin.space list..."); + $this->contents_lisp = CommunitySources::fetch_source('LISP'); + log_info("Parsing extra information..."); if (!$this->process_sources()) { log_error("Could not parse extra information from one or more sources."); @@ -295,6 +300,7 @@ $this->contents_fark . $this->contents_loki . $this->contents_simp . + $this->contents_lisp . // Slashes are escaped when served, unescape them str_replace("\\/", "/", $this->contents_sdir); }