reddit: fix parsing of before and after pagination token - frontends - front-ends for some sites (experiment)
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e7026d3b1b221247c300a78b1ee199729110c9ba
 (DIR) parent 1e0902f58ff2684e42003b162bd1e1177dafadd9
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue,  7 Jan 2020 23:08:32 +0100
       
       reddit: fix parsing of before and after pagination token
       
       Diffstat:
         M reddit/reddit.c                     |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/reddit/reddit.c b/reddit/reddit.c
       @@ -93,10 +93,6 @@ reddit_list_processnode(struct json_node *nodes, size_t depth, const char *value
                struct json_node *node;
                struct tm *tm;
        
       -        if (r->nitems >= MAX_ITEMS)
       -                return;
       -        item = &(r->items[r->nitems]);
       -
                if (depth == 3 &&
                    nodes[0].type == TYPE_OBJECT &&
                    nodes[1].type == TYPE_OBJECT &&
       @@ -110,6 +106,10 @@ reddit_list_processnode(struct json_node *nodes, size_t depth, const char *value
                        }
                }
        
       +        if (r->nitems >= MAX_ITEMS)
       +                return;
       +        item = &(r->items[r->nitems]);
       +
                if (depth == 5 &&
                    nodes[0].type == TYPE_OBJECT &&
                    nodes[1].type == TYPE_OBJECT &&