Comments (4)
Hi,
Short URLs endpoints also provide the AP representation of the object. What was the other fediverse software you used to share the video URL?
There was a fedi link button somewhere on the page for that short URL.
I'm not sure to understand, can you describe the use case of such button?
from peertube.
Short URLs endpoints also provide the AP representation of the object. What was the other fediverse software you used to share the video URL?
Akkoma. Works great with the long url, I can reply and reblog. Neither of those things work with just the /w/ version of the URL.
There was a fedi link button somewhere on the page for that short URL.
I'm not sure to understand, can you describe the use case of such button?
To get the long /videos/watch/ version of the URL, and to get the original instance's version of the URL because additionally, let's say I'm on peer tube and I wanna link to https://peer.tube/w/niisfGPmHx6R8FCSCBvq8Y
, I can't, but the real URL https://diode.zone/videos/watch/ac7a4fc0-2284-4925-8fba-cf9c059652e6
works just fine.
Here is a similar issue on mlmym, which was fixed: rystaf/mlmym#57
from peertube.
Can you create an issue on Akkoma bug tracker and paste the issue URL?
I'm surprised that Akkoma doesn't seem to follow AP redirects. It would be much easier for users if Akkoma supported https://peer.tube/w/niisfGPmHx6R8FCSCBvq8Y
URLs. For example Mastodon correctly fetches the video when using the short URL:
from peertube.
Seems like this is a feature the Akkoma team removed for some sorta security reason:
08:27 <sandra> Is "ActivityPub redirects" a real thing? https ://github.com//issues/6389#issuecomment-2112689320
10:17 <sandra> Maybe Lemmy also would get a li'l easier to use if this AP redirect thing were real
11:04 <FloatingGhost> that depends if the ID of the final AP object is the same as the initial URL or not
11:05 <FloatingGhost> if "AP redirect" (?) means that they've gone somewhere/id -> somewhere/id2, then it will fail
11:05 <sandra> That's definitively what they're doing, yeah
11:05 <FloatingGhost> yep then it will fail and we want it to fail
11:05 <sandra> Right
11:06 <sandra> They're saying it works on Mastodon
11:06 <sandra> They're even doing somewhere/id -> somewhere-else/id2 i.e. not even on the same server
11:07 <FloatingGhost> oh yeah that should not work
11:07 <sandra> Bridgy (not the bluesky bridge, this is another issue) and peertube are both relying on this weird "AP redirect" behavior
11:08 <FloatingGhost> this was a security issue we addressed a while back
11:08 <FloatingGhost> see https://akkoma.dev/AkkomaGang/akkoma/commit/c4cf4d7f0bb1d1082f74aea8fb54ed50160ab29e
11:09 <sandra> Thank you for digging that up.♥︎
11:09 <sandra> Can I send this chat snippet to the PeerTube dev?
11:09 <sandra> Including that link
11:12 <FloatingGhost> sure, basically they need a consistent ID to get past security checks
11:12 <FloatingGhost>
https://akkoma.dev/AkkomaGang/akkoma/commit/8684964c5d03f6c70f73730b3f1ad26784ffb004
11:12 <FloatingGhost> this may also be relevant
11:16 <FloatingGhost> this comment i think sums up the approach
11:16 <FloatingGhost> > Check whether the fetch URL (after redirects) exactly (sans tralining slash) matches either the canonical ActivityPub id or the objects url field (for display URLs from *key and Mastodon)
from peertube.
Related Issues (20)
- Slow query to select videos HOT 4
- Admin Portal Opt-Out of Username Case Sensitivity HOT 2
- Add field for "origin"
- SQL error upon updating actor HOT 2
- Slow query upon listing playlists HOT 2
- Add a button to translate comments
- Seeding HOT 1
- number of views HOT 1
- Slow query upon updating user video history HOT 3
- Add scheduler to delete old notifications HOT 6
- Explicitly don't cache HTML files
- Postgres serialization issue after multiple permanent live streams re-starting simultaneously HOT 1
- Lightweight PeerTube icon, for blogs/sites to place in footers, etc. HOT 1
- Ensure client don't cache plugin translations file
- Transcoding failed: Missing lock for job HOT 2
- How are comments/like/dislikes synced? HOT 2
- A `Video` object does not contain the group as a target in to/cc/audience HOT 2
- Cannot compute FPS because 0 is lower than our minimum value 1 HOT 1
- Playback issue with range (position) with unusual video framerate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from peertube.