plugin xep-0277: fixed bad data check

This commit is contained in:
Goffi 2011-04-09 13:17:31 +02:00
commit d7402734e6

View file

@ -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)