Giter Site home page Giter Site logo

Provide a federation link about peertube HOT 4 OPEN

snan avatar snan commented on May 23, 2024
Provide a federation link

from peertube.

Comments (4)

Chocobozzz avatar Chocobozzz commented on May 23, 2024

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.

snan avatar snan commented on May 23, 2024

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.

Chocobozzz avatar Chocobozzz commented on May 23, 2024

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:

screen_2024-05-15-16_20_48

from peertube.

snan avatar snan commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.