From 9b6555b788e708ec2e77943f0a9f758d9ebc124e Mon Sep 17 00:00:00 2001
From: gravel
Date: Tue, 10 Dec 2024 12:02:53 +0000
Subject: [PATCH] feat: add source nsfwlisting.carrd.co
---
README.md | 1 +
php/servers/sources.php | 6 ++++++
sites/about/index.php | 1 +
3 files changed, 8 insertions(+)
diff --git a/README.md b/README.md
index ad4ea5b..6fc834b 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,7 @@ Communities displayed come from a variety of sources:
- ,
- ,
- ,
+- ,
- 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 07a5fba..f11369e 100644
--- a/php/servers/sources.php
+++ b/php/servers/sources.php
@@ -246,6 +246,7 @@
'SDIR-JSON' => 'https://session.directory/scrape.php',
'SIMP' => 'https://simplifiedprivacy.com/techgroups',
'FARK' => 'https://freearkham.cc/',
+ 'NSFW' => 'https://nsfwlisting.carrd.co/',
// Unused
'SDIR' => 'https://session.directory/?all=groups',
@@ -258,6 +259,7 @@
private readonly string $contents_sdir;
private readonly string $contents_fark;
private readonly string $contents_simp;
+ private readonly string $contents_nsfw;
private readonly string $contents_aggregated;
/**
@@ -285,6 +287,9 @@
log_info("Requesting SimplifiedPrivacy.com list...");
$this->contents_simp = CommunitySources::fetch_source('SIMP');
+ log_info("Requesting NSFW Carrd list...");
+ $this->contents_nsfw = CommunitySources::fetch_source('NSFW');
+
log_info("Parsing extra information...");
if (!$this->process_sources()) {
log_error("Could not parse extra information from one or more sources.");
@@ -297,6 +302,7 @@
$this->contents_fark .
$this->contents_loki .
$this->contents_simp .
+ $this->contents_nsfw .
// Slashes are escaped when served, unescape them
str_replace("\\/", "/", $this->contents_sdir);
}
diff --git a/sites/about/index.php b/sites/about/index.php
index 927c321..391b894 100644
--- a/sites/about/index.php
+++ b/sites/about/index.php
@@ -43,6 +43,7 @@ displays information about them as a static HTML page.
https://github.com/GNU-Linux-libre/Awesome-Session-Group-List,
https://freearhkam.cc,
https://simplifiedprivacy.com/techgroups,
+https://nsfwlisting.carrd.co/,
a few hardcoded servers found on the internet.
Have a list we don't know about? Shoot us a message.