Send Tweets to mentions properly

This commit is contained in:
Manuel Cortez 2021-07-02 10:11:50 -05:00
parent 5f11467f27
commit 9053fcd5de
2 changed files with 2 additions and 2 deletions

View File

@ -1640,7 +1640,7 @@ class Controller(object):
if buffer == None or buffer.session.db["user_name"] != user: return
buffer.add_new_item(data)
if buff == "home_timeline": sound_to_play = "tweet_received.ogg"
elif buff == "mentions_timeline": sound_to_play = "mention_received.ogg"
elif buff == "mentions": sound_to_play = "mention_received.ogg"
elif buff == "sent_tweets": sound_to_play = "tweet_send.ogg"
elif "timeline" in buff: sound_to_play = "tweet_timeline.ogg"
else: sound_to_play = None

View File

@ -538,7 +538,7 @@ class Session(base.baseSession):
buffers_to_send.append("sent_tweets")
for user in status.entities["user_mentions"]:
if user["id"] == self.db["user_id"]:
buffers_to_send.append("mentions_timeline")
buffers_to_send.append("mentions")
users_with_timeline = [user.split("-")[0] for user in self.db.keys() if user.endswith("-timeline")]
for user in users_with_timeline:
if status.user.id_str == user: