diff options
author | Andinus <andinus@nand.sh> | 2020-11-24 15:27:57 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-11-24 15:27:57 +0530 |
commit | fbbc7de1089859c02d163b20adf9279c1dc6db5a (patch) | |
tree | 1965fcb54f5ec9b616f0048f30e11ad6bd4b8995 /README.org | |
parent | 144369a429d51959e0952e0a26633379c8826138 (diff) | |
download | draco-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