jeffalo is now the first user to have 2 pinned posts and i think this post i made caused this

interestingly, the prod and beta pages show the pins in a different order

quick thought i had about the wasteof api

since pinned in a user’s post list is an array that usually only contains one thing (a user’s pinned post), what would happen if someone were to add something to that array by manually editing the database?

i’m specifically referring to this:

{"posts": [ regular post list, blah ], "pinned": [ this ]}

edit: if you want to see what im referring to in the actual wasteof api, you can go to api.wasteof.money/users/jeffalo/posts?page=999 to get the pinned post without all of jeffalo’s other posts

Dec 11, 2022, 11:43 PM
2 1 1

comments (single view)

its not possible to choose the order of pinned posts because they are just pinned: true or false.

thats not what i was saying

on beta, your “if at first you dont succeed” post is first

but on prod, your “hello world” post is first

(i would attach images but my school blocks cubeupload)

yes, because neither site knows what order they’re meant to be in. i could sort by when the post was posted, but that wouldn’t be very clear.

View all comments