twitter: fix condition to correctly check if user is logged
This commit is contained in:
parent
6444756adc
commit
6069bd0e59
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class TwitterModule(Module, CapMessages, CapMessagesPost, CapCollection):
|
|||
self.storage.save()
|
||||
|
||||
def post_message(self, message):
|
||||
if self.config['username'].get():
|
||||
if not self.config['username'].get():
|
||||
raise BrowserForbidden()
|
||||
self.browser.post(find_object(self.iter_threads(), id=message.full_id.split('.')[0]),
|
||||
message.content)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue