This gives a lot more information to others when the link is shared, and is also much easier to remember if you're just typing something into your address bar and don't have the link to copy-paste.
It should be possible to achieve this by letting users submit a post alias along with the status when POST-ing to /api/v1/statuses. We could use a field like 'alias' or 'slug' for this. Then, we would simply store that URL instead, and federate that out instead of the generated URL (the AP URI, which is distinct from URL, would not need to change).
In cases where the user already has a post with the alias https://example.org/@some_user/this-is-a-post-about-how-much-i-love-puppies, we could just increment the post alias like this-is-a-post-about-how-much-i-love-puppies-2.
When someone posts on GtS, it generates a url for the post that looks something like the following:
This works fine for short, disposable statuses that you blast out quickly, where you don't really care what the URL ends up being.
However, for longer-form blog posts that you'd like to share with others, it would be nice if the link looked something more like:
This gives a lot more information to others when the link is shared, and is also much easier to remember if you're just typing something into your address bar and don't have the link to copy-paste.
It should be possible to achieve this by letting users submit a post alias along with the status when POST-ing to
/api/v1/statuses
. We could use a field like 'alias' or 'slug' for this. Then, we would simply store that URL instead, and federate that out instead of the generated URL (the AP URI, which is distinct from URL, would not need to change).In cases where the user already has a post with the alias
https://example.org/@some_user/this-is-a-post-about-how-much-i-love-puppies
, we could just increment the post alias likethis-is-a-post-about-how-much-i-love-puppies-2
.