mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 09:18:51 +01:00
Attempt to fix wrong boosts count
This commit is contained in:
parent
d1965a84b5
commit
2723ef4593
1 changed files with 7 additions and 7 deletions
|
@ -535,15 +535,15 @@ const TimelineItem = memo(
|
||||||
const url = instance
|
const url = instance
|
||||||
? `/${instance}/s/${actualStatusID}`
|
? `/${instance}/s/${actualStatusID}`
|
||||||
: `/s/${actualStatusID}`;
|
: `/s/${actualStatusID}`;
|
||||||
let title = '';
|
|
||||||
if (type === 'boosts') {
|
|
||||||
title = `${items.length} Boosts`;
|
|
||||||
} else if (type === 'pinned') {
|
|
||||||
title = 'Pinned posts';
|
|
||||||
}
|
|
||||||
const isCarousel = type === 'boosts' || type === 'pinned';
|
|
||||||
if (items) {
|
if (items) {
|
||||||
const fItems = filteredItems(items, filterContext);
|
const fItems = filteredItems(items, filterContext);
|
||||||
|
let title = '';
|
||||||
|
if (type === 'boosts') {
|
||||||
|
title = `${fItems.length} Boosts`;
|
||||||
|
} else if (type === 'pinned') {
|
||||||
|
title = 'Pinned posts';
|
||||||
|
}
|
||||||
|
const isCarousel = type === 'boosts' || type === 'pinned';
|
||||||
if (isCarousel) {
|
if (isCarousel) {
|
||||||
// Here, we don't hide filtered posts, but we sort them last
|
// Here, we don't hide filtered posts, but we sort them last
|
||||||
fItems.sort((a, b) => {
|
fItems.sort((a, b) => {
|
||||||
|
|
Loading…
Reference in a new issue