aboutsummaryrefslogtreecommitdiff
path: root/blog/comment/feed.php
diff options
context:
space:
mode:
authorHannah Isopod <me@bathynomus.xyz>2025-06-11 03:25:00 -0600
committerHannah Isopod <me@bathynomus.xyz>2025-06-11 03:25:00 -0600
commitb3bb0b898d3178963fefb9c0b16a00a76cf2a034 (patch)
treeeec6da7a21790183b15f31283fe3b8bcaabfaa4d /blog/comment/feed.php
parent5023bdef46281034c0476bc4201342a0a4cc2ae7 (diff)
total guestbook overhaul + new blog post + etc
- Added /about/pronouns/ in leiu of something like a pronouns.cc profile - New blog post about my new and improved AI opinions - Moved Stop Using Chromium to an actual blog post page - Blog posts now have previous and next buttons - New /blog/ background - Moved status.cafe widget from /blog/ to landing page - Total overhaul of guestbook: - Merged guestbook and blog comment section code - Beefed up bot protection - Added a word filter - Added a property to entries to facilitate holding comments for review and approving or denying them manually (The interface for this is somewhere else) - IP address from which a post originates is now tracked in order to IP ban malicious actors - Various new buttons - Updated /greenhouse/ - The site is now a member of the No AI Webring - a couple minor CSS fixes
Diffstat (limited to 'blog/comment/feed.php')
-rw-r--r--blog/comment/feed.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/blog/comment/feed.php b/blog/comment/feed.php
deleted file mode 100644
index 889514f..0000000
--- a/blog/comment/feed.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
-include("../../Parsedown.php");
-$Parsedown = new Parsedown();
-$Parsedown->setSafeMode(true);
-
-header('Content-Type: text/xml');
-
-echo '<rss version="2.0"><channel>';
-echo '<title>isopod.cool blog comments</title>';
-echo '<description>Every comment posted on my blog in chronological order.</description>';
-echo '<language>en-us</language>';
-echo '<link>https://isopod.cool/blog/comment/</link>';
-echo '<generator>My crappy PHP code</generator>';
-
-$postlist = json_decode(file_get_contents("posts.json"));
-$totaloutput = "";
-foreach($postlist as $post) {
- $output = "";
- $date = date("D, d M Y H:m:s", $post->date) . " GMT";
- $name = $post->name;
- $message = $Parsedown->text(html_entity_decode($post->message));
- $entry = $post->entry;
-
- $output = $output."Comment from ".$name." on ".$entry.":<br><br>".$message."<br><br>";
- $totaloutput = "<item><title>Comment on " . $entry . " from " . $name . "</title><link>https://isopod.cool/blog/posts/" . $entry . "/</link><pubDate>" . $date . "</pubDate><description>".htmlentities($output)."</description><guid isPermaLink='false'>" . $entry . $post->date . $name . "</guid></item>".$totaloutput;
-}
-
-echo $totaloutput;
-echo "</channel></rss>"; \ No newline at end of file