From 0b49ee4fa691db90dfe1229f499d81d9957ab844 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 10 Jun 2024 10:39:34 -0300 Subject: [PATCH] feat(renderStatus): return zaps_amount --- src/views/mastodon/statuses.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/mastodon/statuses.ts b/src/views/mastodon/statuses.ts index ed14c8e..a0874b3 100644 --- a/src/views/mastodon/statuses.ts +++ b/src/views/mastodon/statuses.ts @@ -104,6 +104,7 @@ async function renderStatus(event: DittoEvent, opts: RenderStatusOpts): Promise< replies_count: event.event_stats?.replies_count ?? 0, reblogs_count: event.event_stats?.reposts_count ?? 0, favourites_count: event.event_stats?.reactions['+'] ?? 0, + zaps_amount: event.event_stats?.zaps_amount ?? 0, favourited: reactionEvent?.content === '+', reblogged: Boolean(repostEvent), muted: false,