Permalink
Browse files

Using user's login when a name isn't provided

  • Loading branch information...
1 parent 43ece72 commit b358a25fcfce35b197b9037c2f5bc79cb1568a35 @zmoazeni committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 coffee/site.coffee
  2. +1 −1 js/site.js
View
2 coffee/site.coffee
@@ -173,7 +173,7 @@ class Event extends Spine.Model
when "follow"
{
url:@payload.target.html_url
- name:@payload.target.name
+ name:(@payload.target.name || @payload.target.login)
gravatar:@payload.target.avatar_url
type:"watch"
}
View
2 js/site.js
@@ -300,7 +300,7 @@
case "follow":
return {
url: this.payload.target.html_url,
- name: this.payload.target.name,
+ name: this.payload.target.name || this.payload.target.login,
gravatar: this.payload.target.avatar_url,
type: "watch"
};

0 comments on commit b358a25

Please sign in to comment.