{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/1421","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/1421/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/1421/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/1421/events","html_url":"https://github.com/mautic/mautic/pull/1421","id":132210332,"number":1421,"title":"Fixed the check if setUnsubscribed method exists","user":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars.githubusercontent.com/u/1235442?v=3","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/mautic/mautic/labels/L1","name":"L1","color":"4e5e9e"},{"url":"https://api.github.com/repos/mautic/mautic/labels/Pending%20Test%20Confirmation","name":"Pending Test Confirmation","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T17:39:40Z","updated_at":"2016-02-22T18:30:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/1421","html_url":"https://github.com/mautic/mautic/pull/1421","diff_url":"https://github.com/mautic/mautic/pull/1421.diff","patch_url":"https://github.com/mautic/mautic/pull/1421.patch"},"body":"Reported in https://github.com/mautic/mautic/issues/1387, https://github.com/mautic/mautic/issues/1345 and https://github.com/mautic/mautic/issues/1322.\r\n\r\nThe unsubscribe function will mark the email as bounced instead of unsubscribed.\r\n\r\n### Testing\r\n\r\n1. Send an email to a lead with the unsubscribe link\r\n2. Click the link in the email\r\n3. Check the DB table email_donotemail or the lead profile. It is marked as bounced.\r\n4. Apply this PR code and repeat. Lead should get the proper unsubscribed tag."},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/187307842","html_url":"https://github.com/mautic/mautic/pull/1421#issuecomment-187307842","issue_url":"https://api.github.com/repos/mautic/mautic/issues/1421","id":187307842,"user":{"login":"dongilbert","id":718028,"avatar_url":"https://avatars.githubusercontent.com/u/718028?v=3","gravatar_id":"","url":"https://api.github.com/users/dongilbert","html_url":"https://github.com/dongilbert","followers_url":"https://api.github.com/users/dongilbert/followers","following_url":"https://api.github.com/users/dongilbert/following{/other_user}","gists_url":"https://api.github.com/users/dongilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dongilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongilbert/subscriptions","organizations_url":"https://api.github.com/users/dongilbert/orgs","repos_url":"https://api.github.com/users/dongilbert/repos","events_url":"https://api.github.com/users/dongilbert/events{/privacy}","received_events_url":"https://api.github.com/users/dongilbert/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T18:30:13Z","updated_at":"2016-02-22T18:30:13Z","body":":+1: "}}