Skip to content
Browse files

Fixes broken links with login-only users

  • Loading branch information...
1 parent b358a25 commit 6ba8aed9d754f1719addee2bef8a097011969ebc @zmoazeni committed May 12, 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
@@ -172,7 +172,7 @@ class Event extends Spine.Model
}
when "follow"
{
- url:@payload.target.html_url
+ url:(@payload.target.html_url || "https://github.com/#{@payload.target.login}")
name:(@payload.target.name || @payload.target.login)
gravatar:@payload.target.avatar_url
type:"watch"
View
2 js/site.js
@@ -299,7 +299,7 @@
};
case "follow":
return {
- url: this.payload.target.html_url,
+ url: this.payload.target.html_url || ("https://github.com/" + this.payload.target.login),
name: this.payload.target.name || this.payload.target.login,
gravatar: this.payload.target.avatar_url,
type: "watch"

0 comments on commit 6ba8aed

Please sign in to comment.
Something went wrong with that request. Please try again.