openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit be49324ac0c0e73ea712b3a589a21d2947a76853
parent 61b577b25d9a94bbadfb7d5f88becd06b3705506
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Thu,  3 Sep 2020 20:32:38 +0300

single msg view

Diffstat:
Mii-node/web.go | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -190,7 +190,9 @@ func www_topic(user *ii.User, www WWW, w http.ResponseWriter, r *http.Request, i } mis := db.LookupIDS(db.SelectIDS(ii.Query{Echo: mi.Echo})) ids := getTopics(db, mis)[id] - fmt.Printf("%d\n", len(ids)) + if len(ids) == 0 { + ids = append(ids, id) + } ii.Trace.Printf("www topic: %s", id) start := makePager(&ctx, len(ids), page) nr := PAGE_SIZE