{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/force/pulls/comments/170034543","pull_request_review_id":98658587,"id":170034543,"diff_hunk":"@@ -56,7 +56,13 @@ module.exports = class FollowButton extends Backbone.View\n       mediator.trigger 'open:auth',\n         mode: 'register'\n         copy: \"Sign up to follow #{@label}\"\n-        destination: @href || \"#{@model.href()}/follow\"\n+        destination: @href\n+        afterSignUpAction: {","path":"src/desktop/components/follow_button/view.coffee","position":6,"original_position":6,"commit_id":"a19463047ba0e930199bf95728290a8cbc4509f0","original_commit_id":"a19463047ba0e930199bf95728290a8cbc4509f0","user":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"body":"This is the key, we want to store in the cookie the action/id and 'type' (since you can follow different types of things).","created_at":"2018-02-22T17:30:12Z","updated_at":"2018-02-22T17:30:12Z","html_url":"https://github.com/artsy/force/pull/2207#discussion_r170034543","pull_request_url":"https://api.github.com/repos/artsy/force/pulls/2207","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/comments/170034543"},"html":{"href":"https://github.com/artsy/force/pull/2207#discussion_r170034543"},"pull_request":{"href":"https://api.github.com/repos/artsy/force/pulls/2207"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/force/pulls/2207","id":170814499,"html_url":"https://github.com/artsy/force/pull/2207","diff_url":"https://github.com/artsy/force/pull/2207.diff","patch_url":"https://github.com/artsy/force/pull/2207.patch","issue_url":"https://api.github.com/repos/artsy/force/issues/2207","number":2207,"state":"open","locked":false,"title":"@erikds => Add ability to follow an entity after sign up","user":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"body":"This adds client-side follows in the same pattern as artwork saves. I tested a bunch of different ones (artist/genes on the home page, fairs, etc.) and all seems to work locally!\r\n\r\nThe follow button-initiated sign up flow does correctly take you to onboarding (due to that `register` vs `signup` redirect fix the other day), so this removes the `destination` which was the server-side follow routes (which weren't fully implemented) in favor of the client-side follow.\r\n\r\nSo now, at least for follows, you always go thru onboarding and wind up where you started (and are following the thing).","created_at":"2018-02-22T17:23:26Z","updated_at":"2018-02-22T17:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"524281118465cc2fc9912108ccfe21885d0cb974","assignee":{"login":"erikdstock","id":9088720,"avatar_url":"https://avatars2.githubusercontent.com/u/9088720?v=4","gravatar_id":"","url":"https://api.github.com/users/erikdstock","html_url":"https://github.com/erikdstock","followers_url":"https://api.github.com/users/erikdstock/followers","following_url":"https://api.github.com/users/erikdstock/following{/other_user}","gists_url":"https://api.github.com/users/erikdstock/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdstock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdstock/subscriptions","organizations_url":"https://api.github.com/users/erikdstock/orgs","repos_url":"https://api.github.com/users/erikdstock/repos","events_url":"https://api.github.com/users/erikdstock/events{/privacy}","received_events_url":"https://api.github.com/users/erikdstock/received_events","type":"User","site_admin":false},"assignees":[{"login":"erikdstock","id":9088720,"avatar_url":"https://avatars2.githubusercontent.com/u/9088720?v=4","gravatar_id":"","url":"https://api.github.com/users/erikdstock","html_url":"https://github.com/erikdstock","followers_url":"https://api.github.com/users/erikdstock/followers","following_url":"https://api.github.com/users/erikdstock/following{/other_user}","gists_url":"https://api.github.com/users/erikdstock/gists{/gist_id}","starred_url":"https://api.github.com/users/erikdstock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikdstock/subscriptions","organizations_url":"https://api.github.com/users/erikdstock/orgs","repos_url":"https://api.github.com/users/erikdstock/repos","events_url":"https://api.github.com/users/erikdstock/events{/privacy}","received_events_url":"https://api.github.com/users/erikdstock/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/force/pulls/2207/commits","review_comments_url":"https://api.github.com/repos/artsy/force/pulls/2207/comments","review_comment_url":"https://api.github.com/repos/artsy/force/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/force/issues/2207/comments","statuses_url":"https://api.github.com/repos/artsy/force/statuses/a19463047ba0e930199bf95728290a8cbc4509f0","head":{"label":"artsy:add_follows_to_signup","ref":"add_follows_to_signup","sha":"a19463047ba0e930199bf95728290a8cbc4509f0","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":22887404,"name":"force","full_name":"artsy/force","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/force","description":"The Artsy.net website:","fork":false,"url":"https://api.github.com/repos/artsy/force","forks_url":"https://api.github.com/repos/artsy/force/forks","keys_url":"https://api.github.com/repos/artsy/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/force/teams","hooks_url":"https://api.github.com/repos/artsy/force/hooks","issue_events_url":"https://api.github.com/repos/artsy/force/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/force/events","assignees_url":"https://api.github.com/repos/artsy/force/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/force/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/force/tags","blobs_url":"https://api.github.com/repos/artsy/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/force/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/force/languages","stargazers_url":"https://api.github.com/repos/artsy/force/stargazers","contributors_url":"https://api.github.com/repos/artsy/force/contributors","subscribers_url":"https://api.github.com/repos/artsy/force/subscribers","subscription_url":"https://api.github.com/repos/artsy/force/subscription","commits_url":"https://api.github.com/repos/artsy/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/force/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/force/merges","archive_url":"https://api.github.com/repos/artsy/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/force/downloads","issues_url":"https://api.github.com/repos/artsy/force/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/force/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/force/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/force/labels{/name}","releases_url":"https://api.github.com/repos/artsy/force/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/force/deployments","created_at":"2014-08-12T18:14:34Z","updated_at":"2018-02-13T16:06:38Z","pushed_at":"2018-02-22T17:25:56Z","git_url":"git://github.com/artsy/force.git","ssh_url":"git@github.com:artsy/force.git","clone_url":"https://github.com/artsy/force.git","svn_url":"https://github.com/artsy/force","homepage":"https://www.artsy.net","size":126173,"stargazers_count":207,"watchers_count":207,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":75,"open_issues":130,"watchers":207,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"92f13640f8d21c6050d2e5a28fb98df8dcebe500","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":22887404,"name":"force","full_name":"artsy/force","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/force","description":"The Artsy.net website:","fork":false,"url":"https://api.github.com/repos/artsy/force","forks_url":"https://api.github.com/repos/artsy/force/forks","keys_url":"https://api.github.com/repos/artsy/force/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/force/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/force/teams","hooks_url":"https://api.github.com/repos/artsy/force/hooks","issue_events_url":"https://api.github.com/repos/artsy/force/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/force/events","assignees_url":"https://api.github.com/repos/artsy/force/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/force/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/force/tags","blobs_url":"https://api.github.com/repos/artsy/force/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/force/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/force/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/force/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/force/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/force/languages","stargazers_url":"https://api.github.com/repos/artsy/force/stargazers","contributors_url":"https://api.github.com/repos/artsy/force/contributors","subscribers_url":"https://api.github.com/repos/artsy/force/subscribers","subscription_url":"https://api.github.com/repos/artsy/force/subscription","commits_url":"https://api.github.com/repos/artsy/force/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/force/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/force/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/force/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/force/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/force/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/force/merges","archive_url":"https://api.github.com/repos/artsy/force/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/force/downloads","issues_url":"https://api.github.com/repos/artsy/force/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/force/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/force/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/force/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/force/labels{/name}","releases_url":"https://api.github.com/repos/artsy/force/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/force/deployments","created_at":"2014-08-12T18:14:34Z","updated_at":"2018-02-13T16:06:38Z","pushed_at":"2018-02-22T17:25:56Z","git_url":"git://github.com/artsy/force.git","ssh_url":"git@github.com:artsy/force.git","clone_url":"https://github.com/artsy/force.git","svn_url":"https://github.com/artsy/force","homepage":"https://www.artsy.net","size":126173,"stargazers_count":207,"watchers_count":207,"language":"CoffeeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"archived":false,"open_issues_count":130,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":75,"open_issues":130,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/force/pulls/2207"},"html":{"href":"https://github.com/artsy/force/pull/2207"},"issue":{"href":"https://api.github.com/repos/artsy/force/issues/2207"},"comments":{"href":"https://api.github.com/repos/artsy/force/issues/2207/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/force/pulls/2207/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/force/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/force/pulls/2207/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/force/statuses/a19463047ba0e930199bf95728290a8cbc4509f0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mzikherman"}}