mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-08-04 21:16:07 -04:00
Create valid account buffers even when session cannot login to the network (works for ignored sessions)
This commit is contained in:
@@ -175,5 +175,5 @@ class Session(base.baseSession):
|
||||
def get_name(self):
|
||||
instance = self.settings["mastodon"]["instance"]
|
||||
instance = instance.replace("https://", "")
|
||||
user = self.db["user_name"]
|
||||
user = self.settings["mastodon"]["user_name"]
|
||||
return "Mastodon: {}@{}".format(user, instance)
|
@@ -674,4 +674,7 @@ class Session(base.baseSession):
|
||||
pub.sendMessage("sent-dm", data=item, session_name=self.get_name())
|
||||
|
||||
def get_name(self):
|
||||
return "Twitter: {}".format(self.db["user_name"])
|
||||
if self.logged:
|
||||
return "Twitter: {}".format(self.db["user_name"])
|
||||
else:
|
||||
return "Twitter: {}".format(self.settings["twitter"]["user_name"])
|
Reference in New Issue
Block a user