diff options
| author | user <user@node5.net> | 2024-02-27 17:17:45 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-02-27 17:17:45 +0100 |
| commit | 34b030ebb64638fa7e583e22c1920689d02d0fd5 (patch) | |
| tree | 11b2d7dadb6d7d14181eadc447c85e186a64f543 /src/blog_node5_net.py | |
| parent | 4a8b1d18bf29f9b8036c89ff0b737a12c125a260 (diff) | |
comments fix show contact
Diffstat (limited to 'src/blog_node5_net.py')
| -rw-r--r-- | src/blog_node5_net.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blog_node5_net.py b/src/blog_node5_net.py index b1d290b..076bd72 100644 --- a/src/blog_node5_net.py +++ b/src/blog_node5_net.py @@ -48,9 +48,9 @@ def get_comments(url: str) -> list[dict]: @app.route('/comment', methods=['POST']) def post_comment(): - args = {} + args = {'public': False, 'show_contact': False} args['page_url'] = strip_trailing_slash(urllib.parse.unquote(urllib.parse.urlparse(flask.request.referrer).path)) - for key,value in flask.request.form.items(): + for key, value in flask.request.form.items(): if key in ('username', 'visitor_url', 'contact', 'show_contact', 'public', 'comment'): if key in ('public', 'show_contact'): value = value == 'on' |
