mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Merge pull request #5591 from halfdan/fix/5573
Do not serialize toJSON to get published_at
This commit is contained in:
commit
a0ee69d365
1 changed files with 1 additions and 2 deletions
|
@ -414,8 +414,7 @@ Post = ghostBookshelf.Model.extend({
|
|||
|
||||
return ghostBookshelf.Model.findOne.call(this, data, options).then(function then(post) {
|
||||
if ((withNext || withPrev) && post && !post.page) {
|
||||
var postData = post.toJSON(options),
|
||||
publishedAt = postData.published_at,
|
||||
var publishedAt = post.get('published_at'),
|
||||
prev,
|
||||
next;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue