diff server.js @ 10:360186772aa3

Don’t hardcode avatars URL.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 02 Nov 2011 10:00:01 -0700
parents 7ab6b48122af
children 03be0717d3f8
line wrap: on
line diff
--- a/server.js
+++ b/server.js
@@ -171,7 +171,8 @@ var parseAtom = function(atom, id, jid) 
 		try{
 			var uri = author.getChild('uri', ns.atom).getText();
 			footer.c('cite').c('a', {href: uri}).t(name).up();
-			avatar.attrs.src = '/avatar/' + uri.substring(5);
+			avatar.attrs.src = config.avatarRoot + uri.substring(5);
+			avatar.attrs.alt = uri.substring(5);
 		} catch (e) {
 			footer.c('cite').t(name);
 		}