summaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'controllers')
-rw-r--r--controllers/controllers.php2
1 files changed, 1 insertions, 1 deletions
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']);
}