lower threshold for comments slimed to death
This commit is contained in:
parent
2716d9441c
commit
ca7a0794a8
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ function Comment(props: Props) {
|
||||||
const likesCount = (othersReacts && othersReacts.like) || 0;
|
const likesCount = (othersReacts && othersReacts.like) || 0;
|
||||||
const dislikesCount = (othersReacts && othersReacts.dislike) || 0;
|
const dislikesCount = (othersReacts && othersReacts.dislike) || 0;
|
||||||
const totalLikesAndDislikes = likesCount + dislikesCount;
|
const totalLikesAndDislikes = likesCount + dislikesCount;
|
||||||
const slimedToDeath = totalLikesAndDislikes > 5 && dislikesCount / totalLikesAndDislikes > 0.8;
|
const slimedToDeath = totalLikesAndDislikes >= 5 && dislikesCount / totalLikesAndDislikes > 0.8;
|
||||||
// to debounce subsequent requests
|
// to debounce subsequent requests
|
||||||
const shouldFetch =
|
const shouldFetch =
|
||||||
channel === undefined ||
|
channel === undefined ||
|
||||||
|
|
Loading…
Reference in a new issue