mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Feat: Added initial session to provide support to GoToSocial instances.
This commit is contained in:
parent
5ad29130b9
commit
c05dc4b211
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"] = []
|
Loading…
Reference in New Issue
Block a user