Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack 'Attachment' Images not displaying #67

Open
werkkrew opened this issue Feb 1, 2020 · 1 comment
Open

Slack 'Attachment' Images not displaying #67

werkkrew opened this issue Feb 1, 2020 · 1 comment

Comments

@werkkrew
Copy link

werkkrew commented Feb 1, 2020

I have a slack-compatible payload as detailed below:

{
	"username":"PlexBot",
	"text":"Plex (Foo)\r\nAmerican Dharma was recently added to Plex.",
	"attachments":
	[{
		"title":"American Dharma (2019)",
		"text":"A portrait of controversial Breitbart honcho and Donald Trump advisor, Stephen K. Bannon.",
		"title_link":"https://www.imdb.com/title/tt8804284",
		"fields":
		[{
			"short":true,
			"value":"<https://www.imdb.com/title/tt8804284|IMDb>",
			"title":"View Details"
		}],
		"fallback":"Image for American Dharma (2019)",
		"thumb_url":"https://i.imgur.com/HzH2885.jpg"
	}],
	"icon_url":"https://i.imgur.com/iF8m9LE.png"
}

In Riot, this payload displays as:

image

I am not sure if the 'thumb_url" and/or 'icon_url' parameters are implemented as per #17 but was asked to open an issue anyway.

@Just-Insane
Copy link

Did you ever find a solution to this?

I'm thinking it would be possible to build a go template that takes this JSON and sends it out to matrix formatted nicely, but I'm having trouble figuring out how to write the template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants