Mercurial > psgxs
diff modules/mod_publish.js @ 56:99bd1d1ac071
Migration to node-xmpp, done!
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 10 Aug 2011 15:11:22 -0700 |
parents | c979c4d0932b |
children | b98e545a94f7 |
line wrap: on
line diff
--- a/modules/mod_publish.js +++ b/modules/mod_publish.js @@ -51,7 +51,7 @@ exports.publish = { var itemID = item.getAttribute('id'); if (!config.enabled('item-ids') && itemID) return makeError(response, errors.itemid_required.n); - itemID = itemID? itemID: makeRandomId(); + itemID = itemID? itemID: uuid(); if (item.tags.length != 1) return makeError(response, errors.pub.publish.bad_payload.n);