krz/hn

A brutalist web client for Hacker News.

clone: git clone https://gitbay.org/krz/hn.git

0063209979f22d7d63333047b6e2de187f28ff9c

signed_unknown_key

author: Christian Cleberg <hello@cmc.pub> · 2025-03-11T23:25:18Z

move from cleberg.net to cmc.pub
 .DS_Store                          | Bin 6148 -> 0 bytes
 README.md                          |   4 ++--
 index.php                          |   4 ++--
 src/Controller/FeedController.php  |   2 +-
 src/Controller/RouteController.php |   2 +-
 src/Model/ApiService.php           |  20 ++++++++++----------
 src/Model/CacheService.php         |   2 +-
 7 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/.DS_Store b/.DS_Store
deleted file mode 100644
index a4c214e..0000000
Binary files a/.DS_Store and /dev/null differ
diff --git a/README.md b/README.md
index 9483924..034d40c 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ sudo apt install nginx-full php php-cgi php-fpm minify
 Clone the repo:
 
 ```
-git clone https://git.sr.ht/~cmc/hn/
+git clone https://git.sr.ht/~Christian Cleberg/hn/
 ```
 
 If you need to minify CSS changes:
@@ -92,7 +92,7 @@ This project currently doesn't use versioning. See the git log instead.
 
 ## Authors
 
-* **CMC** - *Literally everything* - [cmc](https://sr.ht/~cmc/)
+* **CMC** - *Literally everything* - [Christian Cleberg](https://sr.ht/~Christian Cleberg/)
 
 ## License
 
diff --git a/index.php b/index.php
index 03ecb6a..0f8b78c 100644
--- a/index.php
+++ b/index.php
@@ -2,8 +2,8 @@
 
 require_once 'src/Controller/RouteController.php';
 
-$GLOBALS['full_domain'] = 'https://hn.cleberg.net';
-$GLOBALS['author_name'] = 'cmc';
+$GLOBALS['full_domain'] = 'https://hn.cmc.pub';
+$GLOBALS['author_name'] = 'Christian Cleberg';
 $GLOBALS['site_title'] = 'hn';
 
 $route = new HN\Controllers\RouteController($_SERVER['REQUEST_URI']);
diff --git a/src/Controller/FeedController.php b/src/Controller/FeedController.php
index 0e3e3b4..86ae7eb 100644
--- a/src/Controller/FeedController.php
+++ b/src/Controller/FeedController.php
@@ -38,7 +38,7 @@ class FeedController
      * Request template to be presented to the user
      *
      * @access public
-     * @author cmc <hello@cleberg.net>
+     * @author Christian Cleberg <hello@cmc.pub>
      */
     public function render(): void
     {
diff --git a/src/Controller/RouteController.php b/src/Controller/RouteController.php
index 3267ec2..2a4ed28 100644
--- a/src/Controller/RouteController.php
+++ b/src/Controller/RouteController.php
@@ -26,7 +26,7 @@ class RouteController
      *
      * @access public
      * @return void No return type; send user to FeedController->render() or a 404 error
-     * @author cmc <hello@cleberg.net>
+     * @author Christian Cleberg <hello@cmc.pub>
      */
     public function routeUser(): void
     {
diff --git a/src/Model/ApiService.php b/src/Model/ApiService.php
index d0db901..1553dbf 100644
--- a/src/Model/ApiService.php
+++ b/src/Model/ApiService.php
@@ -8,7 +8,7 @@ namespace HN\Models;
  * @access public
  * @param string $api_url The API endpoint to use for extraction
  * @return mixed The API results formatted into an HTML section
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function GetApiResults(string $api_url): mixed
 {
@@ -23,7 +23,7 @@ function GetApiResults(string $api_url): mixed
  * @param mixed $api_results The decoded API results
  * @param string $inline_title The <h1> title to use in the HTML
  * @return string $html_output The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ParseStories(mixed $api_results, string $inline_title): string
 {
@@ -47,7 +47,7 @@ function ParseStories(mixed $api_results, string $inline_title): string
  * @param mixed $api_results The decoded API results
  * @param string $inline_title The <h1> title to use in the HTML
  * @return string $html_output The formatted HTML result of stories from the API
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ParseUser(mixed $api_results, string $inline_title): string
 {
@@ -94,7 +94,7 @@ function ParseUser(mixed $api_results, string $inline_title): string
  * @param mixed $api_results The decoded API results
  * @param string $inline_title The <h1> title to use in the HTML
  * @return string $html_output The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ParseItem(mixed $api_results): string
 {
@@ -132,7 +132,7 @@ function ParseItem(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function GetItem(mixed $api_results): string
 {
@@ -154,7 +154,7 @@ function GetItem(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ConstructStory(mixed $api_results): string
 {
@@ -189,7 +189,7 @@ function ConstructStory(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ConstructStoryDiscussion(mixed $api_results): string
 {
@@ -241,7 +241,7 @@ function ConstructStoryDiscussion(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ConstructComment(mixed $api_results): string
 {
@@ -265,7 +265,7 @@ function ConstructComment(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ConstructPoll(mixed $api_results): string
 {
@@ -278,7 +278,7 @@ function ConstructPoll(mixed $api_results): string
  * @access public
  * @param mixed $api_results The decoded API results
  * @return string The formatted HTML result of stories from the API or the error message
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function ConstructPollOpt(mixed $api_results): string
 {
diff --git a/src/Model/CacheService.php b/src/Model/CacheService.php
index 2bf1f57..3eda0c4 100644
--- a/src/Model/CacheService.php
+++ b/src/Model/CacheService.php
@@ -5,6 +5,6 @@
  *
  * @access public
  * @return void
- * @author cmc <hello@cleberg.net>
+ * @author Christian Cleberg <hello@cmc.pub>
  */
 function CacheService() {}
\ No newline at end of file