natjms / resin

The Pixelfed client you won't get addicted to [READ-ONLY MIRROR]
https://git.nats.solutions/nat/resin
GNU General Public License v3.0
46 stars 3 forks source link

Timestamp not a property of the status object as returned by the Mastodon API #7

Closed natjms closed 3 years ago

natjms commented 3 years ago

In posts.js, the age of a post is calculated by comparing the property timestamp of two posts, but that's not the value we'll actually be getting while making an API call. Instead, the value will be under a property called created_at and will look something like "2019-11-23T19:55:08.208Z". This can probably be handled using Javascript's Date object, so it will just need to be reworked.