Merge branch 'v0l:main' into patch-502

This commit is contained in:
Vivek Ganesan
2023-04-13 21:56:29 +05:30
committed by GitHub
40 changed files with 3412 additions and 1026 deletions

View File

@ -1,7 +1,5 @@
.nip05 {
color: var(--font-secondary-color);
justify-content: flex-start;
align-items: center;
font-weight: normal;
}
@ -52,10 +50,4 @@
.zap .pfp .display-name {
align-items: center;
}
.nip05 .nick {
display: none;
}
.nip05 .domain {
display: none;
}
}

View File

@ -107,7 +107,7 @@ export default function Poll(props: PollProps) {
<>
<small>
<FormattedMessage
defaultMessage="Your are voting with {amount} sats"
defaultMessage="You are voting with {amount} sats"
values={{
amount: formatShort(prefs.defaultZapAmount),
}}

View File

@ -25,24 +25,6 @@
font-weight: 600;
}
.pfp .profile-name {
display: flex;
flex-direction: column;
}
.pfp .display-name {
display: flex;
flex-direction: column;
align-items: flex-start;
}
@media (max-width: 420px) {
.pfp .display-name {
flex-direction: row;
align-items: center;
}
}
.pfp .subheader .about {
max-width: calc(100vw - 140px);
}

View File

@ -131,7 +131,7 @@ export default function SendSats(props: SendSatsProps) {
console.debug("Generated new key for zap: ", randomKey);
ev.pubkey = randomKey.publicKey;
ev.id = "";
ev.tags.push(["anon"]);
ev.tags.push(["anon", ""]);
await EventExt.sign(ev, randomKey.privateKey);
}
zap = ev;

View File

@ -36,7 +36,7 @@ export function parseZap(zapReceipt: TaggedRawEvent, refNote?: TaggedRawEvent):
throw new Error("deprecated zap format");
}
const isForwardedZap = refNote?.tags.some(a => a[0] === "zap") ?? false;
const anonZap = findTag(zapRequest, "anon");
const anonZap = zapRequest.tags.find(a => a[0] === "anon");
const metaHash = sha256(innerZapJson);
const pollOpt = zapRequest.tags.find(a => a[0] === "poll_option")?.[1];
const ret: ParsedZap = {