mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
a05a0b313f
commit
2e41bfeee4
5 changed files with 35 additions and 31 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue