diff options
author | Andinus <andinus@nand.sh> | 2020-11-24 17:06:35 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-11-24 17:06:35 +0530 |
commit | 5c4725f834b6e261e0fbc3ebf8fdeee3de11e647 (patch) | |
tree | eebb27d803553a6a8074fae004fd044dc90787b4 /Makefile | |
parent | 498eb677442140ceabe0762fd7db88ae6c6eacfb (diff) | |
download | draco-5c4725f834b6e261e0fbc3ebf8fdeee3de11e647.tar.gz |
Actually handle all the comments
This will handle all the comments now! I've explained the change in comments but I'll paste it here too: The problem here is that if the thread is too large then at the end reddit will include similar block in which it'll put all other top-level comments in children of 2nd kind. "kind": "more", "data": { "id": "gde31fk", ... "children": [ "gde31fk", "gdbrnyd", ... If the "load more comments" only hides a single thread then it's the only one included in "children". Note how the "id" & first element of "children" is same. So, reddit wants us to check for the length of this list "children", if it is greater than 1 then we need to pull those comments independently. If not then we just have
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions