mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-23 11:48:07 -06:00
Replies will not show on list buffers
This commit is contained in:
parent
7f673fb9de
commit
18f7cb6c96
@ -34,6 +34,10 @@ 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)
|
||||||
|
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)
|
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
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user