Feat: Added initial session to provide support to GoToSocial instances.

This commit is contained in:
Manuel Cortez 2024-05-11 18:05:29 -06:00
parent 5ad29130b9
commit c05dc4b211
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

View File

@ -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"] = []