Squashed commit of the following:
commit a01812b0d709e556af060a393168acc471aca774 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Thu Apr 12 18:15:25 2018 +0100 Improve JSON feed generation to better match the spec commit 72ad2c629738ef73ccaf984ed3ad9b726956dd71 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Sun Apr 8 13:07:48 2018 +0100 Add a test for null title entries
This commit is contained in:
parent
97a6b771f8
commit
3d1ae20afb
3 changed files with 56 additions and 2 deletions
|
@ -121,9 +121,8 @@ class FeedsController extends Controller
|
|||
foreach ($notes as $key => $note) {
|
||||
$data['items'][$key] = [
|
||||
'id' => $note->longurl,
|
||||
'title' => $note->getOriginal('note'),
|
||||
'url' => $note->longurl,
|
||||
'content_html' => $note->note,
|
||||
'content_html' => $note->content,
|
||||
'date_published' => $note->created_at->tz('UTC')->toRfc3339String(),
|
||||
'date_modified' => $note->updated_at->tz('UTC')->toRfc3339String(),
|
||||
'author' => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue