diff --git a/package.json b/package.json index 6ff7e12..d4b4796 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "freedom-social-xmpp", "description": "XMPP Social provider for freedomjs", - "version": "0.0.10", + "version": "0.0.11", "homepage": "http://freedomjs.org", "bugs": { "url": "http://github.com/freedomjs/freedom-social-xmpp/issues", diff --git a/src/vcardstore.js b/src/vcardstore.js index 5e5fd85..b65a11a 100644 --- a/src/vcardstore.js +++ b/src/vcardstore.js @@ -96,7 +96,7 @@ VCardStore.prototype.updateVcard = function(from, message) { user.userId = userid; name = message.getChildText('FN'); url = message.getChildText('URL'); - photo = message.getChildText('PHOTO'); + photo = message.getChild('PHOTO'); if (name) { if (name !== user.name) {