mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-16 12:57:58 +08:00
Fix: after add or update the archive is not accessible
This commit is contained in:
parent
1399e0fc9f
commit
c62c33c5cd
1 changed files with 8 additions and 0 deletions
|
@ -284,6 +284,8 @@ func (h *handler) apiInsertBookmark(w http.ResponseWriter, r *http.Request, ps h
|
||||||
if !isReadable {
|
if !isReadable {
|
||||||
book.Content = ""
|
book.Content = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
book.HasContent = book.Content != ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// If needed, create offline archive as well
|
// If needed, create offline archive as well
|
||||||
|
@ -299,6 +301,8 @@ func (h *handler) apiInsertBookmark(w http.ResponseWriter, r *http.Request, ps h
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
book.HasArchive = true
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -537,6 +541,8 @@ func (h *handler) apiUpdateCache(w http.ResponseWriter, r *http.Request, ps http
|
||||||
book.Content = ""
|
book.Content = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
book.HasContent = book.Content != ""
|
||||||
|
|
||||||
// Get image for thumbnail and save it to local disk
|
// Get image for thumbnail and save it to local disk
|
||||||
var imageURLs []string
|
var imageURLs []string
|
||||||
if article.Image != "" {
|
if article.Image != "" {
|
||||||
|
@ -575,6 +581,8 @@ func (h *handler) apiUpdateCache(w http.ResponseWriter, r *http.Request, ps http
|
||||||
chProblem <- book.ID
|
chProblem <- book.ID
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
book.HasArchive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update list of bookmarks
|
// Update list of bookmarks
|
||||||
|
|
Loading…
Reference in a new issue