mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
Shows error when loading timeline for suspended users. Fixes #125
This commit is contained in:
parent
089eea4c07
commit
16a6fa2896
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## changes in this version
|
## changes in this version
|
||||||
|
|
||||||
|
* TWBlue will show an error when trying to open a timeline for a suspended user. ([#125](https://github.com/manuelcortez/TWBlue/issues/125))
|
||||||
|
|
||||||
|
## Changes in version 0.90
|
||||||
|
|
||||||
* Fixed a bug in long tweet parsing that was making TWBlue to disconnect the streaming API. ([#103](https://github.com/manuelcortez/TWBlue/issues/103))
|
* Fixed a bug in long tweet parsing that was making TWBlue to disconnect the streaming API. ([#103](https://github.com/manuelcortez/TWBlue/issues/103))
|
||||||
* Now OCR will work in images from retweets. It fixes a bug where TWBlue was detecting images but couldn't apply OCR on them. ([#105](https://github.com/manuelcortez/TWBlue/issues/105))
|
* Now OCR will work in images from retweets. It fixes a bug where TWBlue was detecting images but couldn't apply OCR on them. ([#105](https://github.com/manuelcortez/TWBlue/issues/105))
|
||||||
* TWBlue won't try to load tweets already deleted, made with Twishort. Before, if someone posted a long tweet but deleted it in the Twishort's site, TWBlue was trying to load the tweet and it was causing problems in all the client. ([#113](https://github.com/manuelcortez/TWBlue/issues/113))
|
* TWBlue won't try to load tweets already deleted, made with Twishort. Before, if someone posted a long tweet but deleted it in the Twishort's site, TWBlue was trying to load the tweet and it was causing problems in all the client. ([#113](https://github.com/manuelcortez/TWBlue/issues/113))
|
||||||
|
@ -792,6 +792,9 @@ class Controller(object):
|
|||||||
if dlg.get_response() == widgetUtils.OK:
|
if dlg.get_response() == widgetUtils.OK:
|
||||||
usr = utils.if_user_exists(buff.session.twitter.twitter, dlg.get_user())
|
usr = utils.if_user_exists(buff.session.twitter.twitter, dlg.get_user())
|
||||||
if usr != None:
|
if usr != None:
|
||||||
|
if usr == dlg.get_user():
|
||||||
|
commonMessageDialogs.suspended_user()
|
||||||
|
return
|
||||||
if usr["protected"] == True:
|
if usr["protected"] == True:
|
||||||
if usr["following"] == False:
|
if usr["following"] == False:
|
||||||
commonMessageDialogs.no_following()
|
commonMessageDialogs.no_following()
|
||||||
|
@ -76,4 +76,7 @@ def unauthorized():
|
|||||||
return wx.MessageDialog(None, _(u"You have been blocked from viewing this content"), _(u"Error"), wx.OK).ShowModal()
|
return wx.MessageDialog(None, _(u"You have been blocked from viewing this content"), _(u"Error"), wx.OK).ShowModal()
|
||||||
|
|
||||||
def blocked_timeline():
|
def blocked_timeline():
|
||||||
return wx.MessageDialog(None, _(u"You have been blocked from viewing someone's content. In order to avoid conflicts with the full session, TWBlue will remove the affected timeline."), _(u"Error"), wx.OK).ShowModal()
|
return wx.MessageDialog(None, _(u"You have been blocked from viewing someone's content. In order to avoid conflicts with the full session, TWBlue will remove the affected timeline."), _(u"Error"), wx.OK).ShowModal()
|
||||||
|
|
||||||
|
def suspended_user():
|
||||||
|
return wx.MessageDialog(None, _(u"TWBlue cannot load this timeline because the user has been suspended from Twitter."), _(u"Error"), wx.OK).ShowModal()
|
Loading…
Reference in New Issue
Block a user