{"action":"created","issue":{"url":"https://api.github.com/repos/discourse/discourse-patreon/issues/8","repository_url":"https://api.github.com/repos/discourse/discourse-patreon","labels_url":"https://api.github.com/repos/discourse/discourse-patreon/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/discourse/discourse-patreon/issues/8/comments","events_url":"https://api.github.com/repos/discourse/discourse-patreon/issues/8/events","html_url":"https://github.com/discourse/discourse-patreon/issues/8","id":251078657,"number":8,"title":"Trigger updates on sign in attempt","user":{"login":"mpj","id":17815,"avatar_url":"https://avatars2.githubusercontent.com/u/17815?v=4","gravatar_id":"","url":"https://api.github.com/users/mpj","html_url":"https://github.com/mpj","followers_url":"https://api.github.com/users/mpj/followers","following_url":"https://api.github.com/users/mpj/following{/other_user}","gists_url":"https://api.github.com/users/mpj/gists{/gist_id}","starred_url":"https://api.github.com/users/mpj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpj/subscriptions","organizations_url":"https://api.github.com/users/mpj/orgs","repos_url":"https://api.github.com/users/mpj/repos","events_url":"https://api.github.com/users/mpj/events{/privacy}","received_events_url":"https://api.github.com/users/mpj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-17T21:32:29Z","updated_at":"2017-08-17T21:50:36Z","closed_at":null,"body":"I'd like Discourse to update the status of the logged in user with the Patreon API upon login, not just in the batch script and the web hook. Otherwise, a user that creates their forum account after pledging on Patreon will have to wait up to 6 hours before their rewards kick in.\r\n\r\n## Background\r\nI have a forum that is essentially on complete lockdown until the user becomes a Patron - basically, a Patron-only forum. Thus, the users do NOT sign up for Discourse first, they become Patrons, and are then directed to the forum, where they log in with their Patreon account. On login, they won't have access because the account did not exist at the time of the webhook trigger, and the batch script that syncs (https://github.com/discourse/discourse-patreon/blob/master/app/jobs/scheduled/patreon_sync_patrons_to_groups.rb) only triggers every 6 hours.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/discourse/discourse-patreon/issues/comments/323204186","html_url":"https://github.com/discourse/discourse-patreon/issues/8#issuecomment-323204186","issue_url":"https://api.github.com/repos/discourse/discourse-patreon/issues/8","id":323204186,"user":{"login":"xfalcox","id":1385470,"avatar_url":"https://avatars3.githubusercontent.com/u/1385470?v=4","gravatar_id":"","url":"https://api.github.com/users/xfalcox","html_url":"https://github.com/xfalcox","followers_url":"https://api.github.com/users/xfalcox/followers","following_url":"https://api.github.com/users/xfalcox/following{/other_user}","gists_url":"https://api.github.com/users/xfalcox/gists{/gist_id}","starred_url":"https://api.github.com/users/xfalcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfalcox/subscriptions","organizations_url":"https://api.github.com/users/xfalcox/orgs","repos_url":"https://api.github.com/users/xfalcox/repos","events_url":"https://api.github.com/users/xfalcox/events{/privacy}","received_events_url":"https://api.github.com/users/xfalcox/received_events","type":"User","site_admin":false},"created_at":"2017-08-17T21:50:36Z","updated_at":"2017-08-17T21:50:36Z","body":"Did you set webhooks as said in the guide? They make the Forum update the patron list on every new pledge, so this would not happen."}}
{"actor":{"display_login":"xfalcox"}}