diff --git a/app/Http/Controllers/NotesController.php b/app/Http/Controllers/NotesController.php index cf9c13d1..eaa151f1 100644 --- a/app/Http/Controllers/NotesController.php +++ b/app/Http/Controllers/NotesController.php @@ -104,7 +104,11 @@ class NotesController extends Controller switch ($webmention->type) { case 'in-reply-to': $content['source'] = $webmention->source; - $content['date'] = $carbon->parse($microformats['items'][0]['properties']['published'][0])->toDayDateTimeString(); + if (isset($microformats['items'][0]['properties']['published'][0])) { + $content['date'] = $carbon->parse($microformats['items'][0]['properties']['published'][0])->toDayDateTimeString(); + } else { + $content['date'] = $note->webmention->updated_at->toDayDateTimeString(); + } $content['reply'] = $this->filterHTML($microformats['items'][0]['properties']['content'][0]['html']); $replies[] = $content; break; diff --git a/changelog.md b/changelog.md index 70db6653..7c0daf3c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.15.8 (2016-11-07) + - Hotfix: facebook’s love-of appears as an in-reply-to without a published date + ## Version 0.0.15.7 (2016-11-07) - Add a reply icon in note metadata - Allow notes to be deleted