Skip to content

Commit

Permalink
Feat: Added initial session to provide support to GoToSocial instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelcortez committed May 12, 2024
1 parent 5ad2913 commit c05dc4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sessions/gotosocial/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
11 changes: 11 additions & 0 deletions src/sessions/gotosocial/session.py
Original file line number Diff line number Diff line change
@@ -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"] = []

0 comments on commit c05dc4b

Please sign in to comment.