increase reply rss duration to 24h
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
const maxRssItems = 20
|
||||
const maxLastCommentsReply = 1000
|
||||
const maxReplyDuration = 30 * time.Minute
|
||||
const maxReplyDuration = 24 * time.Hour
|
||||
|
||||
// ui uses links like <post-url>#remark42__comment-<comment-id>
|
||||
const uiNav = "#remark42__comment-"
|
||||
|
||||
@@ -49,7 +49,7 @@ type BoltSite struct {
|
||||
|
||||
// NewBoltDB makes persistent boltdb-based store
|
||||
func NewBoltDB(options bolt.Options, sites ...BoltSite) (*BoltDB, error) {
|
||||
log.Printf("[INFO] bolt store for sites %+v", sites)
|
||||
log.Printf("[INFO] bolt store for sites %+v, options %+v", sites, options)
|
||||
result := BoltDB{dbs: make(map[string]*bolt.DB)}
|
||||
for _, site := range sites {
|
||||
db, err := bolt.Open(site.FileName, 0600, &options) // bolt.Options{Timeout: 30 * time.Second}
|
||||
|
||||
Reference in New Issue
Block a user