aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-11-15 23:00:04 +0000
committerAkshay <[email protected]>2024-11-15 23:00:04 +0000
commit5adeac4c9e8f2367a8c6f9bb255797fd30b17774 (patch)
tree4c1af4797e9f21e8cf3da536e887032958a46109
parentc5cd65eba355e66589298cbe88fe3489e0fcebae (diff)
add donate link
-rw-r--r--scripts/gen-invite.js2
-rw-r--r--src/views/index.pug7
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/gen-invite.js b/scripts/gen-invite.js
index 3336a83..7e40ffa 100644
--- a/scripts/gen-invite.js
+++ b/scripts/gen-invite.js
@@ -15,7 +15,7 @@ db.run(`
15 15
16function generateInviteToken() { 16function generateInviteToken() {
17 const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key"); 17 const hasher = new Bun.CryptoHasher("sha256", "super-secret-invite-key");
18 return hasher.update(Math.random().toString()).digest("hex"); 18 return hasher.update(Math.random().toString()).digest("hex").slice(0, 10);
19} 19}
20 20
21function createInvite() { 21function createInvite() {
diff --git a/src/views/index.pug b/src/views/index.pug
index 6eedfe3..ace8922 100644
--- a/src/views/index.pug
+++ b/src/views/index.pug
@@ -70,8 +70,13 @@ html
70 button(onclick=`unsubscribe('${subreddit}')`)#thinger unsubscribe 70 button(onclick=`unsubscribe('${subreddit}')`)#thinger unsubscribe
71 else 71 else
72 button(onclick=`subscribe('${subreddit}')`)#thinger subscribe 72 button(onclick=`subscribe('${subreddit}')`)#thinger subscribe
73 if about 73 if about && !isMulti
74 p #{about.public_description} 74 p #{about.public_description}
75 else
76 p
77 | consider donating to&nbsp;
78 a(href="https://donate.stripe.com/dR62bTaZH1295Da4gg") oppiliappan
79 |, author of readit
75 details 80 details
76 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')} 81 summary.sorting sorting by #{query.sort + (query.t?' '+query.t:'')}
77 div.sort-opts 82 div.sort-opts