From c896ac31c50864c7268c755e0f0e5c9b5fb75ea7 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sun, 5 Aug 2018 09:47:21 +1000 Subject: [PATCH] make it compile --- contrib/backends/srndv2/src/srnd/model_mem.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/backends/srndv2/src/srnd/model_mem.go b/contrib/backends/srndv2/src/srnd/model_mem.go index a5206de..b6ab41d 100644 --- a/contrib/backends/srndv2/src/srnd/model_mem.go +++ b/contrib/backends/srndv2/src/srnd/model_mem.go @@ -15,6 +15,7 @@ import ( ) type catalogModel struct { + SFW bool frontend string prefix string board string @@ -50,6 +51,7 @@ func (self *boardModel) MarkSFW(sfw bool) { for idx := range self.threads { self.threads[idx].MarkSFW(sfw) } + self.SFW = sfw } func (self *boardModel) I18N(i *I18N) { @@ -67,6 +69,7 @@ func (self *catalogModel) MarkSFW(sfw bool) { for idx := range self.threads { self.threads[idx].MarkSFW(sfw) } + self.SFW = sfw } func (self *catalogModel) Navbar() string { @@ -135,6 +138,7 @@ type boardModel struct { board string page int pages int + SFW bool threads []ThreadModel }