mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-17 06:16:23 +00:00
fix: usar los posts indexados para obtener la diferencia
This commit is contained in:
parent
0567e491ee
commit
498c8cc5ad
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class Site
|
|||
#
|
||||
# @return [Boolean]
|
||||
def awaiting_publication?
|
||||
updated_at > (build_stats.jekyll.where(status: true).last&.created_at || updated_at)
|
||||
waiting? && updated_at >= (indexed_posts.order(updated_at: :desc).select(:updated_at).first&.updated_at || 1.second.ago)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue