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
dd58a9a3ff
commit
e5fcde758f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue