diff options
author | Aaron Parecki <aaron@parecki.com> | 2017-11-29 19:50:19 -0800 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2017-11-29 19:50:19 -0800 |
commit | 84f983b735faea1b15a9bcf4d872c48bbe8ed4f6 (patch) | |
tree | 60bc9a247e8871bb6a34940570e1f55c2d88780a /controllers | |
parent | 1cb8afa81c0a07db4f970e3a326f20696e3d87e6 (diff) |
fix for no author url
Diffstat (limited to 'controllers')
-rw-r--r-- | controllers/controllers.php | 2 |
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']); } |