Open emersion opened 3 years ago
Alternatively, maybe instead of sending a 403, PeerTube could perform a redirection to the original instance.
I don't think admins want to redirect on unknown instances.
Perhaps a simple way would be to use the instances that the admin is following/federating with as an allowlist for redirecting. Another option would be to do like Steam, Discord etc do and have a warning asking to confirm that you do want to go to that other website (with URL visible).
I'd almost rather have it be something which I do manually. Like, have to go to the instance, in order to get the link directly to that instance. I get the advantage of having ways of handling it more automatically, but I'm not sure I would expect that would handle well enough the problem of being able to decide what instance to link through.
Not saying it's not a good idea, more that I'd really be careful about how to implement it.
Describe the current behavior Sharing a video hosted on another instance gives a link to the current instance. When embedded, this gives a 403.
Steps to reproduce:
Describe the expected behavior
The iframe should load properly.
Additional information
I think the share menu should always give a link to the original instance if
CONFIG.SEARCH.REMOTE_URI.ANONYMOUS
isn't set. Maybe it should also give a link to the original instance ifCONFIG.SEARCH.REMOTE_URI.ANONYMOUS
is set, because the admin may change that setting in the future (thus breaking all iframes).Alternatively, maybe instead of sending a 403, PeerTube could perform a redirection to the original instance.