{"action":"closed","issue":{"url":"https://api.github.com/repos/mattermost/platform/issues/3021","repository_url":"https://api.github.com/repos/mattermost/platform","labels_url":"https://api.github.com/repos/mattermost/platform/issues/3021/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/platform/issues/3021/comments","events_url":"https://api.github.com/repos/mattermost/platform/issues/3021/events","html_url":"https://github.com/mattermost/platform/issues/3021","id":155242174,"number":3021,"title":"Webhooks sent to a channel user is not a member of cause error","user":{"login":"mcfedr","id":704356,"avatar_url":"https://avatars.githubusercontent.com/u/704356?v=3","gravatar_id":"","url":"https://api.github.com/users/mcfedr","html_url":"https://github.com/mcfedr","followers_url":"https://api.github.com/users/mcfedr/followers","following_url":"https://api.github.com/users/mcfedr/following{/other_user}","gists_url":"https://api.github.com/users/mcfedr/gists{/gist_id}","starred_url":"https://api.github.com/users/mcfedr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcfedr/subscriptions","organizations_url":"https://api.github.com/users/mcfedr/orgs","repos_url":"https://api.github.com/users/mcfedr/repos","events_url":"https://api.github.com/users/mcfedr/events{/privacy}","received_events_url":"https://api.github.com/users/mcfedr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mattermost/platform/labels/Awaiting%20Submitter%20Response","name":"Awaiting Submitter Response","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-17T12:00:37Z","updated_at":"2016-05-20T14:09:14Z","closed_at":"2016-05-20T14:09:14Z","body":"#### Summary\r\n\r\nWebhooks sent to a channel user is not a member of cause error to be shown and notification to be shown.\r\n\r\n#### Steps to reproduce\r\n\r\n1. Create a webhook, send to it with `{channel: '#some-channel-im-not-a-member-of'}`\r\n2. See error in mattermost client 'We couldn't get the channel member'\r\n3. Error in log\r\n\r\n    [2016/05/17 11:46:03 UTC] [EROR] /api/v1/channels/XXXX/:SqlChannelStore.GetMember code=500 rid=XXX uid=XXX ip=X.X.X.X We couldn't get the channel member [details: channel_id=XXXuser_id=XXX,sql: no rows in result set]\r\n4. Receive a loud notification\r\n\r\n#### Expected behavior\r\n\r\nThe message should be sent to the channel, even if im not a member, and see that i'm not a member, and so not notify me about it\r\n\r\n#### Related Issues\r\n\r\nMaybe related to https://github.com/mattermost/platform/issues/2928\r\n"}}
{"actor":{"display_login":"lfbrock"}}