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 |