diff --git a/app.py b/app.py index 968bd1c..f7ba8be 100644 --- a/app.py +++ b/app.py @@ -70,7 +70,7 @@ def new_one(): if not Candidate.query.filter_by(content=content).first(): toot = th.status_post( f"叮~ 有新的自荐报名(大家可以直接在此处评论):\n\n{content}", - visibility='unlisted' + visibility=C.visibility ) c = Candidate( diff --git a/config.sample.py b/config.sample.py index 8a451f7..3f9d73c 100644 --- a/config.sample.py +++ b/config.sample.py @@ -11,3 +11,4 @@ class C(object): ('test2', '2+2=?', '5', '4') ] key = 'key' + visibility = 'public' diff --git a/templates/list.html b/templates/list.html index 123695f..acb4b5f 100644 --- a/templates/list.html +++ b/templates/list.html @@ -88,7 +88,7 @@

自荐提名

- +