Browse Source

fix for #83

pull/96/head
Aaron Parecki 7 years ago
parent
commit
479b844405
No known key found for this signature in database GPG Key ID: 276C2817346D6056
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      controllers/controllers.php

+ 1
- 1
controllers/controllers.php View File

@ -727,7 +727,7 @@ $app->get('/reply/preview', function() use($app) {
$entry['content']['text'] = $content;
}
// Create a nickname based on the author URL
if(array_key_exists('author', $entry)) {
if($entry && array_key_exists('author', $entry)) {
if($entry['author']['url']) {
if(!isset($entry['author']['nickname']) || !$entry['author']['nickname'])
$entry['author']['nickname'] = display_url($entry['author']['url']);

Loading…
Cancel
Save