mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-18 23:36:22 +00:00
fix: usar los posts indexados para obtener la diferencia
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
fde1530b2c
commit
591b88d2f3
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class Site
|
|||
#
|
||||
# @return [Boolean]
|
||||
def awaiting_publication?
|
||||
waiting? && updated_at > (build_stats.jekyll.where(status: true).last&.created_at || updated_at)
|
||||
waiting? && updated_at >= (indexed_posts.order(updated_at: :desc).select(:created_at).first&.created_at || 1.second.ago)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue