clix.publish_atom: Fix prefix for activitystreams

Fri, 24 Aug 2018 23:29:32 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 24 Aug 2018 23:29:32 +0200
changeset 129
e805c014efa9
parent 128
0ae8deb6f75d
child 130
11d526d74460

clix.publish_atom: Fix prefix for activitystreams

Since when does it turn '-' into '_' ?

clix/publish_atom.lua file | annotate | diff | comparison | revisions
--- a/clix/publish_atom.lua	Sat Jul 14 20:33:09 2018 +0200
+++ b/clix/publish_atom.lua	Fri Aug 24 23:29:32 2018 +0200
@@ -38,7 +38,7 @@
 		end
 
 		for opt, optval in pairs(opts) do
-			if opt:match"^as%-" then
+			if opt:sub(1,3) == "as_" then
 				atom_entry:tag(opt:sub(4), { xmlns = xmlns_activitystreams } )
 					:text(optval):up();
 			end

mercurial