aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-22 23:51:49 -0800
committerclarkzjw <[email protected]>2023-02-23 12:07:32 -0800
commit736ba02520802499c9970afd9d1ee6a537fb2230 (patch)
tree4a26d357ef482e42f4fe2a77c0ad5418248bcdb1 /dbstore/peewee_store.py
parentb935ae39c533bfdee7d052acdf939b68833a882a (diff)
downloadswarm2fediverse-736ba02520802499c9970afd9d1ee6a537fb2230.tar.gz
bot: set default toot visibility to private
Diffstat (limited to 'dbstore/peewee_store.py')
-rw-r--r--dbstore/peewee_store.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbstore/peewee_store.py b/dbstore/peewee_store.py
index 37b8c01..00897d7 100644
--- a/dbstore/peewee_store.py
+++ b/dbstore/peewee_store.py
@@ -1,5 +1,10 @@
1from peewee import * 1from peewee import *
2 2
3TOOT_VISIBILITY_PUBLIC = "public"
4TOOT_VISIBILITY_UNLISTED = "unlisted"
5TOOT_VISIBILITY_PRIVATE = "private"
6
7
3db = SqliteDatabase("checkinbot.db") 8db = SqliteDatabase("checkinbot.db")
4db.connect(reuse_if_open=True) 9db.connect(reuse_if_open=True)
5 10
@@ -16,6 +21,7 @@ class User(BaseModel):
16 state = CharField(max_length=128) 21 state = CharField(max_length=128)
17 client_id = CharField(max_length=128) 22 client_id = CharField(max_length=128)
18 client_secret = CharField(max_length=128) 23 client_secret = CharField(max_length=128)
24 toot_visibility = CharField(max_length=128, default=TOOT_VISIBILITY_PRIVATE)
19 25
20 26
21class Location(BaseModel): 27class Location(BaseModel):
Powered by cgit v1.2.3 (git 2.41.0)