Skip to content

Commit

Permalink
feat: reduce url to single char
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiShandy committed Dec 3, 2022
1 parent bc7dcc5 commit d25292b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pages/[username]/print.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ export async function getServerSideProps({
const lnurl = bech32.encode(
"lnurl",
bech32.toWords(
Buffer.from(
`${url.protocol}//${url.hostname}/.well-known/lnurlp/${username}`,
"utf8",
),
Buffer.from(`${url.protocol}//${url.hostname}/.well-known/u/${username}`, "utf8"),
),
1500,
)
Expand Down
File renamed without changes.

0 comments on commit d25292b

Please sign in to comment.