Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit b358a25fcfce35b197b9037c2f5bc79cb1568a35 1 parent 43ece72
@zmoazeni authored
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"
};
Please sign in to comment.
Something went wrong with that request. Please try again.