From 84f983b735faea1b15a9bcf4d872c48bbe8ed4f6 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 29 Nov 2017 19:50:19 -0800 Subject: fix for no author url --- controllers/controllers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/controllers.php b/controllers/controllers.php index b263164..8c371c7 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -771,7 +771,7 @@ $app->get('/reply/preview', function() use($app) { $mentions = []; if($entry) { - if(array_key_exists('author', $entry)) { + if(array_key_exists('author', $entry) && isset($entry['author']['nickname'])) { // Find all @-names in the post, as well as the author name $mentions[] = strtolower($entry['author']['nickname']); } -- cgit v1.2.3