fix: zapper for zap goals

This commit is contained in:
2023-11-03 10:07:06 +09:00
parent 0cef163eb9
commit 9eb029e1dc
2 changed files with 43 additions and 29 deletions

View File

@ -63,10 +63,10 @@ export function parseZap(zapReceipt: NostrEvent, userCache: FeedCache<MetadataCa
ret.valid = false;
ret.errors.push("amount tag does not match invoice amount");
}
if (userCache.getFromCache(ret.receiver)?.zapService !== ret.zapService && !isForwardedZap) {
/*if (userCache.getFromCache(ret.receiver)?.zapService !== ret.zapService && !isForwardedZap) {
ret.valid = false;
ret.errors.push("zap service pubkey doesn't match");
}
}*/
if (!ret.valid) {
Log("Invalid zap %O", ret);