API not taking into account username changes #6
Open
opened 2 years ago by houndvoyager
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Whenever a user changes username, it won't be reflected in suchwow. Since it's using the username (at the time the meme is created) and therefore is a value that won't change when the user changes username.
Proposed solution:
Instead of using the username, the input for "submitter" should be the account UID, if that exists (which can then be resolved with a URL just like the "img" or "href" is).
General description:
To make it simple, when a user wants to see all the posts made by a user, he queries the following URL: https://suchwow.xyz/?submitter={insert username here}, which is taken from the JSON output (you can check it out here: https://suchwow.xyz/api/list)
-hound