make it work without frontend
This commit is contained in:
parent
05ebac9aa5
commit
89d4794871
@ -1154,11 +1154,15 @@ func (self *NNTPDaemon) Setup() {
|
|||||||
|
|
||||||
self.spamFilter.Configure(self.conf.spamconf)
|
self.spamFilter.Configure(self.conf.spamconf)
|
||||||
|
|
||||||
|
regen := func(string, string, string, int) {}
|
||||||
|
if self.frontend != nil {
|
||||||
|
regen = self.frontend.RegenOnModEvent
|
||||||
|
}
|
||||||
self.mod = &modEngine{
|
self.mod = &modEngine{
|
||||||
//spam: &self.spamFilter,
|
//spam: &self.spamFilter,
|
||||||
store: self.store,
|
store: self.store,
|
||||||
database: self.database,
|
database: self.database,
|
||||||
regen: self.frontend.RegenOnModEvent,
|
regen: regen,
|
||||||
}
|
}
|
||||||
// inject DB into template engine
|
// inject DB into template engine
|
||||||
template.DB = self.database
|
template.DB = self.database
|
||||||
|
Reference in New Issue
Block a user