mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
fix: Make statusModel created_at
fields be ISO 8601 strings
This makes the 'Reactions to this post' status (seen when viewing a status context) send the correct data type for `created_at` fields. https://docs.joinmastodon.org/entities/Account/#created_at https://docs.joinmastodon.org/entities/Status/#created_at
This commit is contained in:
parent
7bcb7270b0
commit
67b0e9e2dc
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ export function statusModel(
|
|||
emojis: MastodonEntity.Emoji[],
|
||||
content: string,
|
||||
) {
|
||||
const now = Math.floor(new Date().getTime() / 1000);
|
||||
const now = new Date().toISOString();
|
||||
return {
|
||||
id: "9atm5frjhb",
|
||||
uri: "https://http.cat/404", // ""
|
||||
|
|
Loading…
Reference in a new issue