From f959958de1b22a3e03e14389937dcf841741c784 Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Tue, 14 Jan 2025 17:56:31 +0100 Subject: [PATCH] Add link to the episode the comment is on --- hub/comment_confirm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/comment_confirm.php b/hub/comment_confirm.php index 854cde5..9191243 100644 --- a/hub/comment_confirm.php +++ b/hub/comment_confirm.php @@ -25,8 +25,6 @@ if (strcasecmp('public', $_POST["anti_spam_question"]) !== 0) { naughty("6aef421ce05e3ac34f4cd91ae3248a45"); } -$comment_directory = "/home/hpr/comments"; - if ( ! file_exists( $comment_directory ) ) { # Looks like the comments directory has not been created naughty("d5342ea497f701656433e81fb5eed064"); @@ -273,7 +271,7 @@ $mailer->addBCC('admin@hobbypublicradio.org'); $mailer->AddAddress('comments@hackerpublicradio.org'); $mailer->isHTML(false); $mailer->Subject = "New Comment for show hpr${eps_id} on ${ep_date} ${key}"; -$mailer->MsgHTML("

hpr${eps_id} on ${ep_date} by ${host} with the title ${title} \"${summary}\"

+$mailer->MsgHTML("

hpr${eps_id} on ${ep_date} by ${host} with the title ${title} \"${summary}\"

See attachment for the json comment file.

@@ -318,6 +316,8 @@ $justification ); $mailer->AltBody = "hpr${eps_id} on ${ep_date} by ${host} with the title ${title} \"${summary}\"

+https://hackerpublicradio.org/eps/hpr${eps_id} + See attachment for the json comment file. There are now ${unprocessed_comments} unprocessed comments.