Closed SuperTux88 closed 6 years ago
I added the author
to the diaspora:// URL above. This has two advantages:
root_author
for a reshare).Is author mandatory or optional?
Since it's at the beginning if the URL, it's mandatory. But every object has an author, and I think it's important to validate that.
The protocol is now registered in the IANA URI Schemes registry \o/ (Thanks @denschub for the work 🍪)
Is there still something to do on the federation side to close this issue? Add handling of more types of things than posts and comments? Or is that to be done on the diaspora software side?
Yes, the federation-side is done, the rest is frontend.
On diaspora we have the problem that people want to link to another post, but when I just link to a post like this
https://nerdpol.ch/posts/3919682
most people can't comment on that post, because it links to the wrong post. Also: When the post is private, a person from another pod can't see the post, even when the person does have permissions to view that post on their pod.People try to workaround this with creating relative URLs with the GUID like this
/posts/17faf230675101350d995254001bd39e
(there are even userscripts to automate this). This is better in some ways: When it's a public post or a private post where I have permissions, I can see it on my pod and comment or like. But it has still problems:I suggest to introduce a diaspora:// URI scheme to link to another post. The links should have the same format as for fetching entities:
Example:
That way it would be possible to fetch linked entities (when it is public), that solves the first problem above. And every software compatible to the protocol can convert these links to the internally used route to display the entity (without guessing internal links of other software), that solves the second problem above.
Diaspora currently only supports to fetch posts, so it would also only be possible to link to other posts in the beginning. But that is extendable to other entity-types in the future.
I wanted to add forward compatibility in diaspora 0.7.1.0 (ability to handle and display diaspora:// URLs correctly in the frontend), so we can start using them in diaspora 0.8.0.0 and replace pod-internal URLs with pod independent URLs.