merge: fix: quote being returned as null instead of false on mastodon api (!407)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/407

Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
Amelia Yukii 2024-02-06 19:49:12 +00:00
commit 34b4646b9f

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) : null,
quote: isQuote ? await this.convertReblog(status.reblog) : false,
edited_at: note.updatedAt?.toISOString(),
});
}