mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-06 19:08:12 +02:00
try2
This commit is contained in:
parent
44e0dd4c92
commit
4411780f82
@ -50,7 +50,8 @@ class Addresses(BaseModel):
|
||||
time: int
|
||||
|
||||
async def lnurlpay_metadata(self) -> LnurlPayMetadata:
|
||||
text = f"Payment to {self.username}@{self.domain}"
|
||||
metadata = [["text/plain", text], ["text/identifier", "{self.username}@{self.domain}"]]
|
||||
text = f"Payment to {self.username}"
|
||||
identifier = f"{self.username}"
|
||||
metadata = [["text/plain", text], ["text/identifier", identifier]]
|
||||
|
||||
return LnurlPayMetadata(json.dumps(metadata))
|
||||
|
Loading…
x
Reference in New Issue
Block a user