-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Added initial session to provide support to GoToSocial instances.
- Loading branch information
1 parent
5ad2913
commit c05dc4b
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] = [] |