]> Sergey Matveev's repositories - mmc.git/commitdiff
Remember all posts
authorSergey Matveev <stargrave@stargrave.org>
Mon, 13 Mar 2023 08:20:19 +0000 (11:20 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 13 Mar 2023 08:20:19 +0000 (11:20 +0300)
cmd/rd/main.go

index 7bbfd2b0517c26932e1eee33ce8742f0d48133c5..f6a977802be287ad27759822417037d44ae5e241 100644 (file)
@@ -103,11 +103,13 @@ func main() {
                ms = append(ms, m)
        }
        unlock()
+       for _, m := range ms {
+               rememberPost(m)
+       }
        if len(ms) > *lastNum {
                ms = ms[len(ms)-*lastNum:]
        }
        for _, m := range ms {
-               rememberPost(m)
                printPost(m)
        }