chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2024-09-14 17:32:32 +02:00
parent a05a0b313f
commit 2e41bfeee4
No known key found for this signature in database
5 changed files with 35 additions and 31 deletions

View file

@ -261,6 +261,7 @@ export class Attachment extends BaseInterface<typeof Attachments> {
duration: value.duration || undefined,
fps: value.fps || undefined,
height: value.height || undefined,
// biome-ignore lint/style/useExplicitLengthCheck: Biome thinks we're checking if size is not zero
size: value.size || undefined,
width: value.width || undefined,
sha256: value.hash?.sha256 || undefined,

View file

@ -511,8 +511,8 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
application?: Application;
}): Promise<Note> {
const plaintextContent = data.content
? data.content["text/plain"]?.content ??
Object.entries(data.content)[0][1].content
? (data.content["text/plain"]?.content ??
Object.entries(data.content)[0][1].content)
: undefined;
const parsedMentions = [
@ -954,9 +954,9 @@ export class Note extends BaseInterface<typeof Notes, StatusWithRelations> {
url: data.uri || this.getMastoUri(),
bookmarked: false,
quote: data.quotingId
? (await Note.fromId(data.quotingId, userFetching?.id).then(
? ((await Note.fromId(data.quotingId, userFetching?.id).then(
(n) => n?.toApi(userFetching),
)) ?? null
)) ?? null)
: null,
edited_at: data.updatedAt
? new Date(data.updatedAt).toISOString()