MCPcopy Create free account
hub / github.com/cnodejs/nodeclub / getAvatarURL

Function getAvatarURL

controllers/sign.js:270–279  ·  view source on GitHub ↗
(user)

Source from the content-addressed store, hash-verified

268};
269
270function getAvatarURL(user) {
271 if (user.avatar_url) {
272 return user.avatar_url;
273 }
274 var avatar_url = user.profile_image_url || user.avatar;
275 if (!avatar_url) {
276 avatar_url = config.site_static_host + '/public/images/user_icon&48.png';
277 }
278 return avatar_url;
279}
280
281// auth_user middleware
282exports.auth_user = function (req, res, next) {

Callers 1

sign.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected