forked from HPR/hpr_hub
		
	Add link to the episode the comment is on
This commit is contained in:
		@@ -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("<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>
 | 
			
		||||
See attachment for the json comment file.
 | 
			
		||||
</p>
 | 
			
		||||
@@ -318,6 +316,8 @@ $justification
 | 
			
		||||
);
 | 
			
		||||
$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.
 | 
			
		||||
 | 
			
		||||
There are now ${unprocessed_comments} unprocessed comments.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user