# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1329691865 -3600
# Node ID 0f69e1902f5b74ffa2b60c2014fadca71891fa61
# Parent  075ecfa464846ee5adbb914c6081b59a0ad33ff7
clix.publish_atom: Use the $USER environment variable as fallback for author.

diff -r 075ecfa46484 -r 0f69e1902f5b clix/publish_atom.lua
--- a/clix/publish_atom.lua	Sun Feb 19 23:50:09 2012 +0100
+++ b/clix/publish_atom.lua	Sun Feb 19 23:51:05 2012 +0100
@@ -25,7 +25,7 @@
 			:tag("id"):text(entry_id):up(id)
 			:tag("title"):text(opts.title or ""):up()
 			:tag("updated"):text(opts.updated or datetime()):up();
-		atom_entry:tag("author"):tag("name"):text(opts.author or "Unknown author"):up();
+		atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up();
 		atom_entry:up();
 		if opts.summary then
 			atom_entry:tag("summary"):text(opts.summary):up();