mastodon / mastodon

Your self-hosted, globally interconnected microblogging community
https://joinmastodon.org
GNU Affero General Public License v3.0
47.26k stars 7k forks source link

og:description of posts with images starts with "Attached: 1 image\n\n" #32101

Open americanjeff opened 2 months ago

americanjeff commented 2 months ago

Steps to reproduce the problem

1.Share post from mastodon which contains an image onto some other social media platform (e.g. discord) 2.See what the unroll looks like

Expected behaviour

title/description/image where description is the text of the post

Actual behaviour

description is "Attached: 1 image\n\n" followed by the text of the post

Detailed description

There's no real use for including "attached 1 image\n\n" since the unroll already shows the image which was attached, it just makes it harder to see what the post was.

Mastodon instance

No response

Mastodon version

No response

Technical details

No response

americanjeff commented 2 months ago

And while we're at it, if the hashtag stuff has to be included in the description, it would be better at the end. The top of the description should just be the post text itself

renchap commented 2 months ago

This is useful because most software (including Discord and Slack) do not support displaying multiple images for an opengraph preview, so they will only display the first one and ignore all others. It is very often useful to know that there are more images on this post as the first one alone might not make any sense.

Gargron commented 2 months ago

Actually I noticed Discord started showing multiple images. But I'm not sure how it would behave with audio. And it used to completely hide text if there was a video.

americanjeff commented 2 months ago

If it's necessary to include an image count in the text, perhaps it could be added at the end and also maybe only when there's more than one image? It looks so much nicer when the unroll leads off with the actual text of the post.