plugin xep-0277: fixed bad data check
This commit is contained in:
parent
edffacb8f6
commit
d7402734e6
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class XEP_0277():
|
|||
error(_("Microblog data must contain at least 'content' key"))
|
||||
return 3
|
||||
content = data['content']
|
||||
if not content.has_key("content"):
|
||||
if not content:
|
||||
error(_("Microblog data's content value must not be empty"))
|
||||
return 3
|
||||
item = self.data2entry(data, profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue