mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-10 17:36:02 +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 {
|
||||
book.Content = ""
|
||||
}
|
||||
|
||||
book.HasContent = book.Content != ""
|
||||
}
|
||||
|
||||
// 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 {
|
||||
return
|
||||
}
|
||||
|
||||
book.HasArchive = true
|
||||
}
|
||||
}()
|
||||
|
||||
|
@ -537,6 +541,8 @@ func (h *handler) apiUpdateCache(w http.ResponseWriter, r *http.Request, ps http
|
|||
book.Content = ""
|
||||
}
|
||||
|
||||
book.HasContent = book.Content != ""
|
||||
|
||||
// Get image for thumbnail and save it to local disk
|
||||
var imageURLs []string
|
||||
if article.Image != "" {
|
||||
|
@ -575,6 +581,8 @@ func (h *handler) apiUpdateCache(w http.ResponseWriter, r *http.Request, ps http
|
|||
chProblem <- book.ID
|
||||
return
|
||||
}
|
||||
|
||||
book.HasArchive = true
|
||||
}
|
||||
|
||||
// Update list of bookmarks
|
||||
|
|
Loading…
Reference in a new issue