Browse Source

fix for no author url

pull/96/head
Aaron Parecki 7 years ago
parent
commit
84f983b735
No known key found for this signature in database GPG Key ID: 276C2817346D6056
  1. 2
      controllers/controllers.php

2
controllers/controllers.php

@ -771,7 +771,7 @@ $app->get('/reply/preview', function() use($app) {
$mentions = []; $mentions = [];
if($entry) { 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 // Find all @-names in the post, as well as the author name
$mentions[] = strtolower($entry['author']['nickname']); $mentions[] = strtolower($entry['author']['nickname']);
} }

Loading…
Cancel
Save