Hey @grunfink@comam.es - I'm subscribed to my peertube channel, but when there's a new video all it shows in snac is the title and the description. Not even a clickable link to the actual video is included.
Is this a known issue? Would it make sense for me to look into it and try to fix it?
0 Boosts
0 Likes
I think the problem is around here: https://codeberg.org/grunfink/snac2/src/branch/master/activitypub.c#L372 - it seems to expect one level of nesting that isn't there in the json that's saved on disk.
Instead of something with 'application/x-mpegURL' as media type, it directly gets stuff that it expects at line 380.
The json has this:
"url": [etc ...
{
"type": "Link",
"mediaType": "text/html",
"href": "https://video.chasmcity.net/w/uabb4whv9L4FTHYXvBWaMa"
},
{
"type": "Link",
"mediaType": "text/html",
"href": "https://video.chasmcity.net/videos/watch/e407d895-4525-4622-89ca-c4a8af9e0fff"
},
{
"type": "Link",
"mediaType": "video/mp4",
"href": "https://video.chasmcity.net/static/web-videos/896b26d2-4b48-4e61-bb49-8386e82600e4-1080.mp4",
"height": 1080,
"width": 1920,
Anyway, not sure if this makes sense, I'm a bit tired and about to go to sleep, so maybe I should take another look tomorrow 😊
Yes, definitely this is different from what I've previously seen coming from Peertube. I'll fix it and get back to you.
Ps, no urgency, take it easy and all that!
Hi again. This is strange, as the post you sent me shows correctly the video link:
You're a star!
Hi. Peertube posts used to be shown correctly, but maybe something has changed (I haven't tested again for a while).
Can you give a link to one of the posts that are not correctly shown?