From 6d46fa45c6073fd73ba0177f58d5ea6d6624193c Mon Sep 17 00:00:00 2001 From: Terence Eden Date: Sun, 3 Mar 2024 09:30:31 +0000 Subject: [PATCH] Better checking for CC'd replies --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a77d2ac..cad10c7 100644 --- a/index.php +++ b/index.php @@ -1319,8 +1319,12 @@ HTML; } // Check to see if the user has been specifically CC'd - $reply = in_array( "https://{$server}/{$username}", $object["cc"] ); - + if ( isset( $object["cc"] ) ) { + $reply = in_array( "https://{$server}/{$username}", $object["cc"] ); + } else { + $reply = false; + } + // What sort of message is this? "Create" == $type ? $verb = "wrote" : $verb = "updated"; if ( $reply ) {