mastodon icon indicating copy to clipboard operation
mastodon copied to clipboard

Video posts don't display content or summary field

Open spacekookie opened this issue 3 years ago • 2 comments

Steps to reproduce the problem

  1. Take any peertube video (for example https://diode.zone/w/sZVqd6NUYaXP2j7FUgxxg1)
  2. Open it in Mastodon

Expected behaviour

The video title, the video description, and the actual video are shown

Actual behaviour

Only the video title and video are shown

Detailed description

The video description (the content field) on Peertube can contain valuable information about what the video is, including references to who appears on it (mentioning them in the post), etc. As it is now when I post a video on peertube and want to boost it no my Mastodon audience, I have to create a new post, write all that stuff in, then link to the peertube video.

Alternatively/ ideally both Mastodon and Peertube could agree to use the summary field instead! The ActivityStreams spec includes this and Peertube doesn't currently set it, but it could if there were consumers for it.

This way the main video description (the content field) can be as long as it needs to be (giving detailed outline of what the video is, citations, links to relevant work, etc.

The summary of a post can then simply be a one or two line description of the video, + tagging people involved in the creation of it.

Specifications

Mastodon v4.0.2+glitch but every server version I have seen so far is affected.

spacekookie avatar Dec 06 '22 10:12 spacekookie

If you mean the content field such as "I went to Newcastle (and back) the other week and captured this on the way out of the Newcastle port area onto the open sea", then this could be because Peertube does not seem to be offering that information in the oEmbed data (see https://diode.zone/services/oembed?url=https%3A%2F%2Fdiode.zone%2Fw%2FsZVqd6NUYaXP2j7FUgxxg1 ) which Mastodon prefers over the JSON-LD data. On this front, it'll be best to open an issue with PeerTube to ask them to add that data.

On the Json-LD data front, Mastodon does not currently recognise the JSON-LD @type tag of "VideoObject" (only NewsArticle and WebPage). Whether or not it should is another matter...

(At least that's my reading of the code)

rbairwell avatar Dec 06 '22 16:12 rbairwell

Alternatively/ ideally both Mastodon and Peertube could agree to use the summary field instead! The ActivityStreams spec includes this and Peertube doesn't currently set it, but it could if there were consumers for it.

Unfortunately, this would muddy things up as summary is currently used for the Content Warning. Ideally we should have a dedicated field for that instead of kind-of hijacking summary, but I never managed to get any traction for that.

ClearlyClaire avatar Dec 07 '22 11:12 ClearlyClaire