{"action":"opened","issue":{"url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/2447","labels_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/2447/labels{/name}","comments_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/2447/comments","events_url":"https://api.github.com/repos/honestbleeps/Reddit-Enhancement-Suite/issues/2447/events","html_url":"https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/2447","id":104856922,"number":2447,"title":"The friend button in user info doesn't always work","user":{"login":"githue","id":7245595,"avatar_url":"https://avatars.githubusercontent.com/u/7245595?v=3","gravatar_id":"","url":"https://api.github.com/users/githue","html_url":"https://github.com/githue","followers_url":"https://api.github.com/users/githue/followers","following_url":"https://api.github.com/users/githue/following{/other_user}","gists_url":"https://api.github.com/users/githue/gists{/gist_id}","starred_url":"https://api.github.com/users/githue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githue/subscriptions","organizations_url":"https://api.github.com/users/githue/orgs","repos_url":"https://api.github.com/users/githue/repos","events_url":"https://api.github.com/users/githue/events{/privacy}","received_events_url":"https://api.github.com/users/githue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T09:26:13Z","updated_at":"2015-09-04T09:26:13Z","closed_at":null,"body":"Two issues:\r\n\r\n1. The toggle() function on [+friend] sends the text content of the object, instead of just the username. So if the link is `<a href=\"/u/githue\">`, then onclick will be `toggle('/u/githue')` instead of `toggle('githue')`.\r\n2. The isFriend var is checking for the presence of the class 'friend', which means it only works for links inside `.tagline`. The check won't work for links in user-generated content.\r\n\r\nI don't know how the second issue should be fixed."}}