mirror of
https://git.notfire.cc/notfire/akkoma-fe.git
synced 2026-01-11 05:23:16 -08:00
use more accurate numbers for likes/boosts when clicking on a post
This commit is contained in:
parent
bbe87c4743
commit
1083d6b4bc
4 changed files with 6 additions and 4 deletions
|
|
@ -30,7 +30,7 @@
|
|||
v-if="!mergedConfig.hidePostStats && status.fave_num > 0"
|
||||
class="action-counter"
|
||||
>
|
||||
{{ status.fave_num }}
|
||||
{{ status.favourites_count }}
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
v-if="!mergedConfig.hidePostStats && status.repeat_num > 0"
|
||||
class="no-event"
|
||||
>
|
||||
{{ status.repeat_num }}
|
||||
{{ status.reblogs_count }}
|
||||
</span>
|
||||
<teleport to="#modal">
|
||||
<confirm-modal
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@
|
|||
<div class="stat-count">
|
||||
<a class="stat-title">{{ $t('status.repeats') }}</a>
|
||||
<div class="stat-number">
|
||||
{{ statusFromGlobalRepository.rebloggedBy.length }}
|
||||
{{ statusFromGlobalRepository.reblogs_count }}
|
||||
</div>
|
||||
</div>
|
||||
</UserListPopover>
|
||||
|
|
@ -443,7 +443,7 @@
|
|||
>
|
||||
<a class="stat-title">{{ $t('status.favorites') }}</a>
|
||||
<div class="stat-number">
|
||||
{{ statusFromGlobalRepository.favoritedBy.length }}
|
||||
{{ statusFromGlobalRepository.favourites_count }}
|
||||
</div>
|
||||
</div>
|
||||
</UserListPopover>
|
||||
|
|
|
|||
|
|
@ -312,6 +312,8 @@ export const parseStatus = (data) => {
|
|||
output.in_reply_to_status_id = data.in_reply_to_id
|
||||
output.in_reply_to_user_id = data.in_reply_to_account_id
|
||||
output.replies_count = data.replies_count
|
||||
output.favourites_count = data.favourites_count
|
||||
output.reblogs_count = data.reblogs_count
|
||||
|
||||
if (output.type === 'retweet') {
|
||||
output.retweeted_status = parseStatus(data.reblog)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue