clix/publish_atom.lua

changeset 129
e805c014efa9
parent 128
0ae8deb6f75d
child 130
11d526d74460
equal deleted inserted replaced
128:0ae8deb6f75d 129:e805c014efa9
36 if opts.content then 36 if opts.content then
37 atom_entry:tag("content", { type = opts["content-type"] }):text(opts.content):up(); 37 atom_entry:tag("content", { type = opts["content-type"] }):text(opts.content):up();
38 end 38 end
39 39
40 for opt, optval in pairs(opts) do 40 for opt, optval in pairs(opts) do
41 if opt:match"^as%-" then 41 if opt:sub(1,3) == "as_" then
42 atom_entry:tag(opt:sub(4), { xmlns = xmlns_activitystreams } ) 42 atom_entry:tag(opt:sub(4), { xmlns = xmlns_activitystreams } )
43 :text(optval):up(); 43 :text(optval):up();
44 end 44 end
45 end 45 end
46 46

mercurial