mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
Feat: Added initial session to provide support to GoToSocial instances.
This commit is contained in:
1
src/sessions/gotosocial/__init__.py
Normal file
1
src/sessions/gotosocial/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
11
src/sessions/gotosocial/session.py
Normal file
11
src/sessions/gotosocial/session.py
Normal 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"] = []
|
Reference in New Issue
Block a user