Invert account name and platform name display

This commit is contained in:
Corentin Bacqué-Cazenave 2023-01-01 23:15:36 +01:00
parent 7c47d6171a
commit 25842be18d
2 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ class Session(base.baseSession):
instance = self.settings["mastodon"]["instance"] instance = self.settings["mastodon"]["instance"]
instance = instance.replace("https://", "") instance = instance.replace("https://", "")
user = self.settings["mastodon"]["user_name"] user = self.settings["mastodon"]["user_name"]
return "Mastodon: {}@{}".format(user, instance) return "{}@{}: Mastodon".format(user, instance)
def start_streaming(self): def start_streaming(self):
if config.app["app-settings"]["no_streaming"]: if config.app["app-settings"]["no_streaming"]:

View File

@ -666,6 +666,6 @@ class Session(base.baseSession):
def get_name(self): def get_name(self):
if self.logged: if self.logged:
return "Twitter: {}".format(self.db["user_name"]) return "{}: Twitter".format(self.db["user_name"])
else: else:
return "Twitter: {}".format(self.settings["twitter"]["user_name"]) return "{}: Twitter".format(self.settings["twitter"]["user_name"])