Convert comment posting system to flask framework

This commit is contained in:
James Taylor
2019-07-21 21:48:54 -07:00
parent 167483af21
commit fc295ac93d
7 changed files with 149 additions and 112 deletions

View File

@@ -258,11 +258,16 @@ def get_comments_page():
comments_info['comment_links'] = [(other_sort_text, other_sort_url)]
comment_posting_box_info = {
'form_action': '' if replies else util.URL_ORIGIN + '/post_comment',
'video_id': comments_info['video_id'],
'accounts': accounts.account_list_data(),
'include_video_id_input': not replies,
'replying': replies,
}
return flask.render_template('comments_page.html',
comments_info = comments_info,
form_action = '' if replies else util.URL_ORIGIN + '/post_comment',
include_video_id_input = not replies,
accounts = accounts.account_list_data(),
comment_posting_box_info = comment_posting_box_info,
)