From c05dc4b211a64125811d0dc275f0099089f8a169 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sat, 11 May 2024 18:05:29 -0600 Subject: [PATCH] Feat: Added initial session to provide support to GoToSocial instances. --- src/sessions/gotosocial/__init__.py | 1 + src/sessions/gotosocial/session.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 src/sessions/gotosocial/__init__.py create mode 100644 src/sessions/gotosocial/session.py diff --git a/src/sessions/gotosocial/__init__.py b/src/sessions/gotosocial/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/src/sessions/gotosocial/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/src/sessions/gotosocial/session.py b/src/sessions/gotosocial/session.py new file mode 100644 index 00000000..efc5e97c --- /dev/null +++ b/src/sessions/gotosocial/session.py @@ -0,0 +1,11 @@ +from sessions.mastodon import session + +class Session(session.Session): + # disable version check so Mastodon.py won't throw exceptions. + version_check_mode = "none" + + def get_lists(self): + """ Gets the lists that the user is subscribed to and stores them in the database. Returns None.""" + self.db["lists"] = [] + def get_muted_users(self): + self.db["muted_users"] = []