From 736ba02520802499c9970afd9d1ee6a537fb2230 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Wed, 22 Feb 2023 23:51:49 -0800 Subject: bot: set default toot visibility to private --- dbstore/peewee_store.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dbstore/peewee_store.py') 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 @@ from peewee import * +TOOT_VISIBILITY_PUBLIC = "public" +TOOT_VISIBILITY_UNLISTED = "unlisted" +TOOT_VISIBILITY_PRIVATE = "private" + + db = SqliteDatabase("checkinbot.db") db.connect(reuse_if_open=True) @@ -16,6 +21,7 @@ class User(BaseModel): state = CharField(max_length=128) client_id = CharField(max_length=128) client_secret = CharField(max_length=128) + toot_visibility = CharField(max_length=128, default=TOOT_VISIBILITY_PRIVATE) class Location(BaseModel): -- cgit v1.2.3