From b98b8bf3ced39afcb04e705d500cd5184d8b5254 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 16:45:01 -0800 Subject: - bot: support pleroma instances - status_update() in mastodon.py currently doesn't support content_type, thus it still fallbacks to text/plain on pleroma instances when adding comments --- dbstore/peewee_store.py | 1 + 1 file changed, 1 insertion(+) (limited to 'dbstore') diff --git a/dbstore/peewee_store.py b/dbstore/peewee_store.py index 445816e..ed52257 100644 --- a/dbstore/peewee_store.py +++ b/dbstore/peewee_store.py @@ -18,6 +18,7 @@ class User(BaseModel): telegram_user_id = CharField(unique=True, primary_key=True) access_key = CharField(max_length=256) home_instance = CharField(max_length=256) + home_instance_type = CharField(max_length=128, default="mastodon") state = CharField(max_length=128) client_id = CharField(max_length=128) client_secret = CharField(max_length=128) -- cgit v1.2.3