comparison 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
comparison
equal deleted inserted replaced
9:42d3f454d4b4 10:360186772aa3
169 var name = author.getChild('name', ns.atom).getText(); 169 var name = author.getChild('name', ns.atom).getText();
170 170
171 try{ 171 try{
172 var uri = author.getChild('uri', ns.atom).getText(); 172 var uri = author.getChild('uri', ns.atom).getText();
173 footer.c('cite').c('a', {href: uri}).t(name).up(); 173 footer.c('cite').c('a', {href: uri}).t(name).up();
174 avatar.attrs.src = '/avatar/' + uri.substring(5); 174 avatar.attrs.src = config.avatarRoot + uri.substring(5);
175 avatar.attrs.alt = uri.substring(5);
175 } catch (e) { 176 } catch (e) {
176 footer.c('cite').t(name); 177 footer.c('cite').t(name);
177 } 178 }
178 179
179 try { 180 try {