diff --git a/htmlcheck/rewriter.go b/htmlcheck/rewriter.go index 357110f..8c9dd0a 100644 --- a/htmlcheck/rewriter.go +++ b/htmlcheck/rewriter.go @@ -127,6 +127,7 @@ func buildPostLink(decoded, context *database.PostLinkData) string { b.WriteString(context.Conference) } else { b.WriteString(decoded.Conference) + started = true } b.WriteString(".") if decoded.Topic == -1 { @@ -168,6 +169,7 @@ func (rw *postLinkRewriter) Rewrite(ctx context.Context, data string, svc rewrit if err != nil { return nil } + mydata.CommId = ctxt.CommId err = mydata.VerifyNames(ctx) if err != nil { return nil diff --git a/ui/amsession.go b/ui/amsession.go index 01d5d84..4a6f9f9 100644 --- a/ui/amsession.go +++ b/ui/amsession.go @@ -342,7 +342,6 @@ func (st *amSessionStore) SessionInfo() (int, []string, int) { func (st *amSessionStore) sweep(tick <-chan time.Time, done chan bool) { for range tick { if st.sweepRunning.Load() { - log.Infof("session sweep running") // phase 1 - identify expired sessions st.mutex.RLock() zap := make([]string, 0, len(st.sessions)) @@ -353,7 +352,9 @@ func (st *amSessionStore) sweep(tick <-chan time.Time, done chan bool) { } } st.mutex.RUnlock() - log.Infof("identified %d sessions to zap", len(zap)) + if len(zap) > 0 { + log.Infof("identified %d sessions to zap", len(zap)) + } // phase 2 - get rid of the expired sessions for _, k := range zap { diff --git a/ui/views/top.jet b/ui/views/top.jet index ba38f0a..1cc7c1a 100644 --- a/ui/views/top.jet +++ b/ui/views/top.jet @@ -33,7 +33,7 @@ {{ user = post_getUserName(p, .) }} {{ text = post_getText(p, .) }} {{ topic = post_topic(p, .) }} - {{ link = post_topicLink(topic, comms[i], .) }} + {{ link = post_topicLink(comms[i], topic, .) }}
{{ p.Pseud | raw }}