-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL Schema #51
Comments
Also, I'm wondering what would happpen if a user registered as "site", since the user namepsace is at root without @ or else. Would this prevent the user from being accessed, or would it override the /site url ? |
Every post and reply are stored in the same table, the biggest difference between the two is one contains a media relationship with a photo, the other is a reply to another post. I wouldn't mind having comment/replies under /c/ instead of /p/.
Yes, that is by design. Its meant to be able to link to a specific comment/reply
First off, each post or comment requires a valid username and id. You cannot just increment the id, you need to have the valid username for that post. Secondly, eventually the APIs will be ready so anyone will be able to see every (public) post anyways.
Yes, I am using the same routing path that Instagram uses. Possible solutions: |
Shouldn't they be stored in different ones, then? There's a functional difference between a comment and an image-post -- #84 is related to this, I think.
That's fine, but linking to a specific comment should highlight that comment on the parent image. Right now, comment permalinks make it look like an image didn't get more than 2 comments.
Yes, but right now it's too easy to find comments by iterating over a much smaller address space. As I explained a few minutes ago in IRC:
Will the API include fetching every single comment that a person made?
Ideally this would be rethought, because Instagram's URLs are pretty ugly and not very useful for denoting any sort of structure. Right now, a sample Instagram URL looks something like
which is not really clear how that's structured. In fact, the parameter seems to be entirely optional, since It makes more sense IMO to use a URL structure that reflects the hierarchy: users make posts which receive comments, which is why I proposed
Like the second bullet above explains, it could be
depending on which is more valuable to you. |
@dansup regarding the username space, I think instangram relies on a check during signup to ensure username does not conflict with another URL. Unless you have a similar check on your side, you may have issues. The idea of useing the @ to denote a user profile in the username is probably easy enough to set-up, clear enough for users, and good enough to solve the namespacing issue without putting additional logic during signup. |
|
This won't break old links,
|
|
Minor error in new schema: seems username gets replaced incorrectly. Example post: https://pixelfed.social/p/trwnh/2027 |
Fixed in latest commits! |
Reopening to keep track of implementing updated schema. ActivityPub
|
Right now, image and comment permalinks share a path of site.tld/p/username/number, with no differentiation. I assume "p" stands for "post", but the following concerns arise:
Ideally, a comment's permalink would be somehow nested under the image that it refers to, and the image permalink would be nested under the username.
Also:
A sample permalink that doesn't have as many issues would be:
http://pixelfed.social/@trwnh/post/612987361475/comment/1
The text was updated successfully, but these errors were encountered: