# HG changeset patch # User Kim Alvefur # Date 1345220047 -7200 # Node ID ea99e6653e1894443aa40b35a507faea2e1b074a # Parent 6f038202a502ff109ec4490d2e6ef5bb20750e78 clix.publish_atom: Fix --id option diff -r 6f038202a502 -r ea99e6653e18 clix/publish_atom.lua --- a/clix/publish_atom.lua Fri Aug 17 18:13:44 2012 +0200 +++ b/clix/publish_atom.lua Fri Aug 17 18:14:07 2012 +0200 @@ -21,7 +21,7 @@ end local function on_connect(conn) -- Required: id, title, updated, author (which must have a name) - local entry_id = opts.entry_id or ("clix-"..new_uuid()); + local entry_id = opts.id or new_uuid(); local atom_entry = verse.stanza("entry", { xmlns = xmlns_atom}) :tag("id"):text(entry_id):up(id) :tag("title"):text(opts.title or ""):up()