Return last_status_at as date, not datetime #681
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#681
Loading…
Reference in a new issue
No description provided.
Delete branch "katafrakt/akkoma:fix-last-status-at"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a followup to #637, Mastodon API docs say that
last_status_at
should be a date, not a datetime. See: https://docs.joinmastodon.org/entities/Account/#last_status_at It seems like a right thing to do to adhere to the API, especially given that Akkoma usesNaiveDateTime
everywhere for some reason, which gets serialized to technically proper ISO 8601 string, but which might be a bit surprising to some clients, because of missing timezone.I wonder if conversion to string should be done manually in the view, or rather we should let Phoenix do that. For now it's the latter.
I'll have to check that frontends are ok with this, but it looks ok, thanks!
last_status_at
grep
ing forlast_status_at
in admin-fe didn’t yield any hits, so it too probably never uses itHowever, them being derived from Mastodon forks, it seems reasonable to assume they already correctly deal with proper, date-only
last_status_at
yep, all seems good! thanks a lot!