mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
fix: incorrect type for quote property
This commit is contained in:
parent
58bc8f2c10
commit
56b19ab6bb
2 changed files with 2 additions and 2 deletions
|
@ -278,7 +278,7 @@ export class MastoConverters {
|
||||||
reactions: status.emoji_reactions,
|
reactions: status.emoji_reactions,
|
||||||
emoji_reactions: status.emoji_reactions,
|
emoji_reactions: status.emoji_reactions,
|
||||||
bookmarked: false,
|
bookmarked: false,
|
||||||
quote: isQuote ? await this.convertReblog(status.reblog) : false,
|
quote: isQuote ? await this.convertReblog(status.reblog) : null,
|
||||||
edited_at: note.updatedAt?.toISOString(),
|
edited_at: note.updatedAt?.toISOString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -303,7 +303,7 @@ namespace MisskeyAPI {
|
||||||
pinned: null,
|
pinned: null,
|
||||||
emoji_reactions: typeof n.reactions === 'object' ? mapReactions(n.reactions, n.myReaction) : [],
|
emoji_reactions: typeof n.reactions === 'object' ? mapReactions(n.reactions, n.myReaction) : [],
|
||||||
bookmarked: false,
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue