|
|
@ -65,6 +65,7 @@ def get_subreddit_threads():
|
|
|
|
content["comments"] = []
|
|
|
|
content["comments"] = []
|
|
|
|
|
|
|
|
|
|
|
|
for top_level_comment in submission.comments:
|
|
|
|
for top_level_comment in submission.comments:
|
|
|
|
|
|
|
|
if not top_level_comment.stickied:
|
|
|
|
if len(top_level_comment.body) <= int(environ["MAX_COMMENT_LENGTH"]):
|
|
|
|
if len(top_level_comment.body) <= int(environ["MAX_COMMENT_LENGTH"]):
|
|
|
|
content["comments"].append(
|
|
|
|
content["comments"].append(
|
|
|
|
{"comment_body": top_level_comment.body, "comment_url": top_level_comment.permalink,
|
|
|
|
{"comment_body": top_level_comment.body, "comment_url": top_level_comment.permalink,
|
|
|
|