mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-26 19:23:09 +02:00
fix: send null for empty edited_at in mastodon api
This commit is contained in:
parent
126248e58d
commit
023e2cad73
1 changed files with 3 additions and 2 deletions
|
@ -279,7 +279,8 @@ export class MastoConverters {
|
|||
emoji_reactions: status.emoji_reactions,
|
||||
bookmarked: false,
|
||||
quote: isQuote ? await this.convertReblog(status.reblog) : false,
|
||||
edited_at: note.updatedAt?.toISOString(),
|
||||
// optional chaining cannot be used, as it evaluates to undefined, not null
|
||||
edited_at: note.updatedAt ? note.updatedAt.toISOString() : null,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue