mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01: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
@ -388,7 +388,7 @@ export function statusModel(
|
|||||||
emojis: MastodonEntity.Emoji[],
|
emojis: MastodonEntity.Emoji[],
|
||||||
content: string,
|
content: string,
|
||||||
) {
|
) {
|
||||||
const now = Math.floor(new Date().getTime() / 1000);
|
const now = new Date().toISOString();
|
||||||
return {
|
return {
|
||||||
id: "9atm5frjhb",
|
id: "9atm5frjhb",
|
||||||
uri: "https://http.cat/404", // ""
|
uri: "https://http.cat/404", // ""
|
||||||
|
Loading…
Reference in New Issue
Block a user