SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

cross-pod link handling improvement

Open norayr opened this issue 5 years ago • 2 comments

hello, i suggest a feature, i hope is very easy to implement:

diaspora has two kind of links:

  • pod.tld/posts/shortnumber (i think only digits)

  • pod.tld/posts/long generated hash - this one contains digits and letters, i guess, is generated like cookie, we can be pretty sure it's unique.

that is why cross-pod links are based on this second kind of URL that represents the post.

so the cross-pod links are written in a way [desc](/posts/<long_generated_hash>)

then the diaspora handles them as cross-pod, shows you the link with your pod domain.

the improvement i suggest is very small: when encountering the diaspora link of second kind, with unique post identifier, independently of the pod, show it as cross-pod link. i. e. replace the domain with the current pod domain.

thank you!

norayr avatar Mar 20 '21 09:03 norayr

Our vision is to replace links to posts with diaspora://<diasporaid>/posts/<guid> on outbound and then on inbound try to fetch that post if missing and replace it back with a local link on render. I always get lost on the exact implementation status of this, maybe @SuperTux88 remembers better :)

The hard part will be to uneducate users about the /posts/ hack :D

jhass avatar Apr 10 '21 09:04 jhass

If a post exist with a short /posts/.. link the attached PR can enhance this to full pod host uri. Personally I never used the diaspora:// link. Users still have the choice

tclaus avatar Nov 23 '21 06:11 tclaus