use mastodon API for user fetching on firefish; stronger compatibility

This commit is contained in:
ari melody 2024-06-21 03:18:21 +01:00
parent 893ee804c1
commit 91600d901a
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 3 additions and 17 deletions

View file

@ -145,7 +145,7 @@ export async function parsePost(data, num_replies) {
post.files = data.media_attachments;
post.url = data.url;
post.reply = data.in_reply_to_id && num_replies > 0 ? await getPost(data.in_reply_to_id, num_replies - 1) : null;
post.boost = data.reblog ? await Client.get().api.parsePost(data.reblog, 1) : null;
post.boost = data.reblog ? await parsePost(data.reblog, 1) : null;
post.emojis = [];
data.emojis.forEach(emoji_data => {
let name = emoji_data.shortcode.split('@')[0];