mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: rewrite if statement
This commit is contained in:
parent
0abd567824
commit
7d27a6e890
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ const createStatusController: AppController = async (c) => {
|
||||||
dittoZapSplit[zapPubkey].message,
|
dittoZapSplit[zapPubkey].message,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
if (pubkey in dittoZapSplit === false) {
|
if (totalSplit && !dittoZapSplit[pubkey]) {
|
||||||
tags.push(['zap', pubkey, Conf.relay, Math.max(0, 100 - totalSplit).toString()]);
|
tags.push(['zap', pubkey, Conf.relay, Math.max(0, 100 - totalSplit).toString()]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue