fix: ignore note +1 users
This commit is contained in:
parent
650af9c5ca
commit
cc6776687c
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ const sendAlerts = async (host: string, users: User[]) => {
|
||||||
.map(user => {
|
.map(user => {
|
||||||
const count = userScoreCache.get(toAcct(user));
|
const count = userScoreCache.get(toAcct(user));
|
||||||
if (count == null) return null;
|
if (count == null) return null;
|
||||||
|
if (count.notesCount - (user.prevNotesCount ?? 0) <= 1) return null;
|
||||||
return {
|
return {
|
||||||
user,
|
user,
|
||||||
count,
|
count,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue