Add link to the episode the comment is on
This commit is contained in:
parent
eb4444ebd9
commit
f959958de1
@ -25,8 +25,6 @@ if (strcasecmp('public', $_POST["anti_spam_question"]) !== 0) {
|
|||||||
naughty("6aef421ce05e3ac34f4cd91ae3248a45");
|
naughty("6aef421ce05e3ac34f4cd91ae3248a45");
|
||||||
}
|
}
|
||||||
|
|
||||||
$comment_directory = "/home/hpr/comments";
|
|
||||||
|
|
||||||
if ( ! file_exists( $comment_directory ) ) {
|
if ( ! file_exists( $comment_directory ) ) {
|
||||||
# Looks like the comments directory has not been created
|
# Looks like the comments directory has not been created
|
||||||
naughty("d5342ea497f701656433e81fb5eed064");
|
naughty("d5342ea497f701656433e81fb5eed064");
|
||||||
@ -273,7 +271,7 @@ $mailer->addBCC('admin@hobbypublicradio.org');
|
|||||||
$mailer->AddAddress('comments@hackerpublicradio.org');
|
$mailer->AddAddress('comments@hackerpublicradio.org');
|
||||||
$mailer->isHTML(false);
|
$mailer->isHTML(false);
|
||||||
$mailer->Subject = "New Comment for show hpr${eps_id} on ${ep_date} ${key}";
|
$mailer->Subject = "New Comment for show hpr${eps_id} on ${ep_date} ${key}";
|
||||||
$mailer->MsgHTML("<p>hpr${eps_id} on ${ep_date} by ${host} with the title <strong>${title}</strong> \"${summary}\"</p>
|
$mailer->MsgHTML("<p><a href=\"https://hackerpublicradio.org/eps/hpr${eps_id}\">hpr${eps_id}</a> on ${ep_date} by ${host} with the title <strong>${title}</strong> \"${summary}\"</p>
|
||||||
<p>
|
<p>
|
||||||
See attachment for the json comment file.
|
See attachment for the json comment file.
|
||||||
</p>
|
</p>
|
||||||
@ -318,6 +316,8 @@ $justification
|
|||||||
);
|
);
|
||||||
$mailer->AltBody = "hpr${eps_id} on ${ep_date} by ${host} with the title ${title} \"${summary}\"</p>
|
$mailer->AltBody = "hpr${eps_id} on ${ep_date} by ${host} with the title ${title} \"${summary}\"</p>
|
||||||
|
|
||||||
|
https://hackerpublicradio.org/eps/hpr${eps_id}
|
||||||
|
|
||||||
See attachment for the json comment file.
|
See attachment for the json comment file.
|
||||||
|
|
||||||
There are now ${unprocessed_comments} unprocessed comments.
|
There are now ${unprocessed_comments} unprocessed comments.
|
||||||
|
Loading…
Reference in New Issue
Block a user