Remove most of Twitter code as Twitter's API access has been removed

This commit is contained in:
2023-04-03 13:35:05 -06:00
parent 74fe437684
commit 8acebc290b
95 changed files with 74 additions and 7643 deletions

View File

@@ -6,7 +6,7 @@ import widgetUtils
import config
import output
from twitter_text import parse_tweet, config
from controller.twitter import messages
from controller import messages
from sessions.mastodon import templates
from wxUI.dialogs.mastodon import postDialogs
@@ -23,7 +23,7 @@ def character_count(post_text, post_cw, character_limit=500):
parsed = parse_tweet(full_text, options=options)
return parsed.weightedLength
class post(messages.basicTweet):
class post(messages.basicMessage):
def __init__(self, session, title, caption, text="", *args, **kwargs):
# take max character limit from session as this might be different for some instances.
self.max = session.char_limit