summary refs log tree commit diff stats
path: root/README.org
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-11-24 15:27:57 +0530
committerAndinus <andinus@nand.sh>2020-11-24 15:27:57 +0530
commitfbbc7de1089859c02d163b20adf9279c1dc6db5a (patch)
tree1965fcb54f5ec9b616f0048f30e11ad6bd4b8995 /README.org
parent144369a429d51959e0952e0a26633379c8826138 (diff)
downloaddraco-fbbc7de1089859c02d163b20adf9279c1dc6db5a.tar.gz
Handle all kinds of comments in iterate_over_comments
iterate_over_comments() is a sub to handle all comments.
print_comment_chain() can only parse first kind of comments now, i.e.
top-level comments & their replies.

Comments hidden under "load more comments" & "continue this thread"
require other operations before print_comment_chain() can print them.
All those operations are handled by iterate_over_comments().

Currently "continue this thread" is skipped but "load more comments"
is parsed. This doesn't add anything to previous releases but just
changes the structure.

I'm just preparing to add code to parse comments hidden under
"continue this thread". After that Draco will be able to archive the
whole thread. Previously handling this would've required copying the
same code over 3 times, now it'll be handled at one place.

3 times would've been:

    1. when we start iterating over top-level comments.
    2. when comments hidden under "load more comments" are parsed &
    their child is hidden under "continue this thread".
    3. when replies of normal comments are hidden under "continue this
    thread".

Case 1 & 2 is fixed by switching to iterate_over_comments(). For
third, the replies are handled by iterate_over_comments() so the 3rd
case is also fixed.
Diffstat (limited to 'README.org')
0 files changed, 0 insertions, 0 deletions