Compare commits

...

3 commits

Author SHA1 Message Date
Marie
b114d4b7bb merge: fix: incorrect type for quote property (!480)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/480

Closes #401
2024-03-30 11:14:23 +00:00
Marie
ece86f756d chore: add new type 2024-03-24 23:46:57 +00:00
Marie
56b19ab6bb fix: incorrect type for quote property 2024-03-24 23:41:23 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -278,7 +278,7 @@ export class MastoConverters {
reactions: status.emoji_reactions,
emoji_reactions: status.emoji_reactions,
bookmarked: false,
quote: isQuote ? await this.convertReblog(status.reblog) : false,
quote: isQuote ? await this.convertReblog(status.reblog) : null,
edited_at: note.updatedAt?.toISOString(),
});
}

View file

@ -38,7 +38,7 @@ namespace Entity {
language: string | null
pinned: boolean | null
emoji_reactions: Array<Reaction>
quote: Status | boolean
quote: Status | boolean | null
bookmarked: boolean
}

View file

@ -303,7 +303,7 @@ namespace MisskeyAPI {
pinned: null,
emoji_reactions: typeof n.reactions === 'object' ? mapReactions(n.reactions, n.myReaction) : [],
bookmarked: false,
quote: n.renote && n.text ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : false
quote: n.renote && n.text ? note(n.renote, n.user.host ? n.user.host : host ? host : null) : null
}
}