# HG changeset patch # User Kim Alvefur # Date 1381236845 -7200 # Node ID 3456a6088dc6588df3492ed4ec1ee73c6e7578fa # Parent d2cb5800ab275223250b288991435baec4a45099 clix.publish_atom: Alter Activitystrea.ms argument prefix to --as- and remove IRI prefixing diff -r d2cb5800ab27 -r 3456a6088dc6 clix/publish_atom.lua --- a/clix/publish_atom.lua Tue Oct 08 14:45:07 2013 +0200 +++ b/clix/publish_atom.lua Tue Oct 08 14:54:05 2013 +0200 @@ -3,7 +3,6 @@ local xmlns_atom = "http://www.w3.org/2005/Atom"; local xmlns_activitystreams = "http://activitystrea.ms/spec/1.0/"; -local activitystreams_schema_base = "http://activitystrea.ms/schema/1.0/"; return function (opts, arg) if opts.short_help then @@ -38,9 +37,9 @@ end for opt, optval in pairs(opts) do - if opt:match"^as_" then - atom_entry:tag(opt:sub(4):gsub("_", "-"), { xmlns = xmlns_activitystreams } ) - :text(activitystreams_schema_base..optval):up(); + if opt:match"^as%-" then + atom_entry:tag(opt:sub(4), { xmlns = xmlns_activitystreams } ) + :text(optval):up(); end end