mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-10 00:22:27 +08:00
fix: ping func
This commit is contained in:
3
pkg/cache/cache.go
vendored
3
pkg/cache/cache.go
vendored
@@ -469,7 +469,8 @@ func (c *Cache) loadOrInit() error {
|
||||
if i > 0 {
|
||||
v.Prev = articles[i-1]
|
||||
}
|
||||
if articles[i+1].ID >= blogapp.General.StartID {
|
||||
if i < len(articles)-1 &&
|
||||
articles[i+1].ID >= blogapp.General.StartID {
|
||||
v.Next = articles[i+1]
|
||||
}
|
||||
c.readdArticle(v, false)
|
||||
|
||||
Reference in New Issue
Block a user