mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Do not serialize toJSON to get published_at
This commit is contained in:
parent
27ecb3b211
commit
ed0854d770
1 changed files with 1 additions and 2 deletions
|
@ -415,8 +415,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