mirror of
https://git.notfire.cc/notfire/akkoma-fe.git
synced 2026-01-11 13:33:24 -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"
|
v-if="!mergedConfig.hidePostStats && status.fave_num > 0"
|
||||||
class="action-counter"
|
class="action-counter"
|
||||||
>
|
>
|
||||||
{{ status.fave_num }}
|
{{ status.favourites_count }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
v-if="!mergedConfig.hidePostStats && status.repeat_num > 0"
|
v-if="!mergedConfig.hidePostStats && status.repeat_num > 0"
|
||||||
class="no-event"
|
class="no-event"
|
||||||
>
|
>
|
||||||
{{ status.repeat_num }}
|
{{ status.reblogs_count }}
|
||||||
</span>
|
</span>
|
||||||
<teleport to="#modal">
|
<teleport to="#modal">
|
||||||
<confirm-modal
|
<confirm-modal
|
||||||
|
|
|
||||||
|
|
@ -430,7 +430,7 @@
|
||||||
<div class="stat-count">
|
<div class="stat-count">
|
||||||
<a class="stat-title">{{ $t('status.repeats') }}</a>
|
<a class="stat-title">{{ $t('status.repeats') }}</a>
|
||||||
<div class="stat-number">
|
<div class="stat-number">
|
||||||
{{ statusFromGlobalRepository.rebloggedBy.length }}
|
{{ statusFromGlobalRepository.reblogs_count }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</UserListPopover>
|
</UserListPopover>
|
||||||
|
|
@ -443,7 +443,7 @@
|
||||||
>
|
>
|
||||||
<a class="stat-title">{{ $t('status.favorites') }}</a>
|
<a class="stat-title">{{ $t('status.favorites') }}</a>
|
||||||
<div class="stat-number">
|
<div class="stat-number">
|
||||||
{{ statusFromGlobalRepository.favoritedBy.length }}
|
{{ statusFromGlobalRepository.favourites_count }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</UserListPopover>
|
</UserListPopover>
|
||||||
|
|
|
||||||
|
|
@ -312,6 +312,8 @@ export const parseStatus = (data) => {
|
||||||
output.in_reply_to_status_id = data.in_reply_to_id
|
output.in_reply_to_status_id = data.in_reply_to_id
|
||||||
output.in_reply_to_user_id = data.in_reply_to_account_id
|
output.in_reply_to_user_id = data.in_reply_to_account_id
|
||||||
output.replies_count = data.replies_count
|
output.replies_count = data.replies_count
|
||||||
|
output.favourites_count = data.favourites_count
|
||||||
|
output.reblogs_count = data.reblogs_count
|
||||||
|
|
||||||
if (output.type === 'retweet') {
|
if (output.type === 'retweet') {
|
||||||
output.retweeted_status = parseStatus(data.reblog)
|
output.retweeted_status = parseStatus(data.reblog)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue