Replies will not show on list buffers

This commit is contained in:
Manuel Cortez 2014-11-26 11:52:36 -06:00
parent 7f673fb9de
commit 18f7cb6c96
2 changed files with 8 additions and 2 deletions

View File

@ -34,7 +34,11 @@ class streamer(TwythonStreamer):
tweet_event.SetItem(data) tweet_event.SetItem(data)
announce = _(u"One tweet from %s in the list %s") % (data["user"]["name"], self.parent.nb.GetPage(i).name_buffer[:-5]) announce = _(u"One tweet from %s in the list %s") % (data["user"]["name"], self.parent.nb.GetPage(i).name_buffer[:-5])
tweet_event.SetAnnounce(announce) tweet_event.SetAnnounce(announce)
wx.PostEvent(self.parent.nb.GetPage(i), tweet_event) usr = data["in_reply_to_user_id"]
if (usr != None and usr in self.friends) or data.has_key("retweeted_status"):
wx.PostEvent(self.parent.nb.GetPage(i), tweet_event)
elif usr == None:
wx.PostEvent(self.parent.nb.GetPage(i), tweet_event)
except ValueError: except ValueError:
pass pass
@ -42,5 +46,7 @@ class streamer(TwythonStreamer):
try: try:
if data.has_key("text"): if data.has_key("text"):
self.check_tls(data) self.check_tls(data)
elif "friends" in data:
self.friends = data["friends"]
except: except:
pass pass

View File

@ -68,7 +68,7 @@ class streamer(TwythonStreamer):
tweet_event.SetItem(data["direct_message"]) tweet_event.SetItem(data["direct_message"])
text = _(u"One direct message") text = _(u"One direct message")
tweet_event.SetAnnounce(text) tweet_event.SetAnnounce(text)
wx.PostEvent(self.parent.search_buffer("buffer", "direct_messages"), tweet_event) wx.PostEvent(self.parent.search_buffer("direct_message", "direct_messages"), tweet_event)
def check_follower(self, data): def check_follower(self, data):
if data["target"]["screen_name"] == self.db.settings["user_name"] and config.main["other_buffers"]["show_followers"] == True: if data["target"]["screen_name"] == self.db.settings["user_name"] and config.main["other_buffers"]["show_followers"] == True: