Skip to content

Commit

Permalink
Merge pull request #2880 from ecency/nt/waves-rshare-filter
Browse files Browse the repository at this point in the history
discarding waves with negative rshare and stats properties
  • Loading branch information
feruzm authored May 27, 2024
2 parents 77bd08b + cac24f6 commit 135f6b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/queries/postQueries/wavesQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const useWavesQuery = (host: string) => {
throw new Error('Failed to parse waves');
}

_threadedComments.filter((item) => item.net_rshares >= 0 && !item.stats?.gray && !item.stats.hide);
_threadedComments.sort((a, b) => (new Date(a.created) > new Date(b.created) ? -1 : 1));
_threadedComments.forEach((item) => {
wavesIndexCollection.current[`${item.author}/${item.permlink}`] = pagePermlink;
Expand Down

0 comments on commit 135f6b0

Please sign in to comment.