mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix: ping func
This commit is contained in:
1 parent
c5a3bd6eab
commit
897b05d071
4 files changed
+15
-4
No files matched your search
Vendored
+2
-1
@@ -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