{"action":"opened","issue":{"url":"https://api.github.com/repos/lamby/django-slack/issues/23","labels_url":"https://api.github.com/repos/lamby/django-slack/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/lamby/django-slack/issues/23/comments","events_url":"https://api.github.com/repos/lamby/django-slack/issues/23/events","html_url":"https://github.com/lamby/django-slack/issues/23","id":123339005,"number":23,"title":"Slack message attachments is JSON encoded twice when using custom endpoint url.","user":{"login":"avelis","id":181597,"avatar_url":"https://avatars.githubusercontent.com/u/181597?v=3","gravatar_id":"","url":"https://api.github.com/users/avelis","html_url":"https://github.com/avelis","followers_url":"https://api.github.com/users/avelis/followers","following_url":"https://api.github.com/users/avelis/following{/other_user}","gists_url":"https://api.github.com/users/avelis/gists{/gist_id}","starred_url":"https://api.github.com/users/avelis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avelis/subscriptions","organizations_url":"https://api.github.com/users/avelis/orgs","repos_url":"https://api.github.com/users/avelis/repos","events_url":"https://api.github.com/users/avelis/events{/privacy}","received_events_url":"https://api.github.com/users/avelis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-21T19:07:18Z","updated_at":"2015-12-21T19:07:18Z","closed_at":null,"body":"The two If checks for attachments are located here:\r\nhttps://github.com/lamby/django-slack/blob/master/django_slack/api.py#L59\r\nand\r\nhttps://github.com/lamby/django-slack/blob/master/django_slack/api.py#L67\r\n\r\nIn the event that you want to send a message attachment with custom endpoint url. The payload data will in turn encode the attachments value twice.\r\n\r\nSlack in turn ignores the attachment value and does not display the richly formatted messages."}}