diff --git a/server.py b/server.py
index d7e16ae..0775a13 100644
--- a/server.py
+++ b/server.py
@@ -188,12 +188,19 @@ def wallet(path):
def nostr():
# Get name parameter
name = request.args.get("name")
- if not name:
- return jsonify({"error": "No name provided"})
+ if name:
+ return jsonify(
+ {
+ "names": {
+ name: "b57b6a06fdf0a4095eba69eee26e2bf6fa72bd1ce6cbe9a6f72a7021c7acaa82"
+ }
+ }
+ )
return jsonify(
{
"names": {
- name: "b57b6a06fdf0a4095eba69eee26e2bf6fa72bd1ce6cbe9a6f72a7021c7acaa82"
+ "nathan": "b57b6a06fdf0a4095eba69eee26e2bf6fa72bd1ce6cbe9a6f72a7021c7acaa82",
+ "_": "b57b6a06fdf0a4095eba69eee26e2bf6fa72bd1ce6cbe9a6f72a7021c7acaa82",
}
}
)
@@ -341,10 +348,9 @@ def index():
loaded = True
# Check if crawler
- if (
- "Googlebot" not in request.headers.get("User-Agent")
- and "Bingbot" not in request.headers.get("User-Agent")
- ):
+ if "Googlebot" not in request.headers.get(
+ "User-Agent"
+ ) and "Bingbot" not in request.headers.get("User-Agent"):
# Check if cookie is set
if not request.cookies.get("loaded") and not loaded:
# Set cookie
diff --git a/templates/assets/js/loading.min.js b/templates/assets/js/loading.min.js
index 689855c..2651e5f 100644
--- a/templates/assets/js/loading.min.js
+++ b/templates/assets/js/loading.min.js
@@ -1 +1 @@
-document.addEventListener("DOMContentLoaded",(function(){window.innerWidth<768&&(console.log("Screen width is less than 768px, reloading page"),window.location.reload());const n=document.getElementById("loading-screen"),e=[{pre:'┌──(nathan@NWTux)-[~]',message:"cd Git"},{pre:'┌──(nathan@NWTux)-[~/Git]',message:"cd Nathanwoodburn.github.io"},{pre:'┌──(nathan@NWTux)-[~/Git/Nathanwoodburn.github.io]',message:"python3 main.py"}],t=["Starting server with 1 workers and 2 threads","+0000] [1] [INFO] Starting gunicorn 22.0.0","+0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)","+0000] [1] [INFO] Using worker: gthread","+0000] [8] [INFO] Booting worker with pid: 8"];let a=0;function s(e,t){const a=function(){const n=new Date;return`${n.getUTCFullYear()}-${String(n.getUTCMonth()+1).padStart(2,"0")}-${String(n.getUTCDate()).padStart(2,"0")} ${String(n.getUTCHours()).padStart(2,"0")}:${String(n.getUTCMinutes()).padStart(2,"0")}:${String(n.getUTCSeconds()).padStart(2,"0")}`}();for(let t=0;t$ ',n.appendChild(s);let i=0;const r=setInterval((()=>{s.removeChild(s.querySelector(".cursor")),s.innerHTML+=e.message[i]+'',i++,i===e.message.length&&(s.removeChild(s.querySelector(".cursor")),clearInterval(r),t())}),50)}(e[a],(()=>{a++,setTimeout(r,200)})):s(t,(()=>{setTimeout(i,200)}))}()}));
\ No newline at end of file
+document.addEventListener("DOMContentLoaded",(function(){const n=document.getElementById("loading-screen"),e=[{pre:'┌──(nathan@NWTux)-[~]',message:"cd Git"},{pre:'┌──(nathan@NWTux)-[~/Git]',message:"cd Nathanwoodburn.github.io"},{pre:'┌──(nathan@NWTux)-[~/Git/Nathanwoodburn.github.io]',message:"python3 main.py"}],t=["Starting server with 1 workers and 2 threads","+0000] [1] [INFO] Starting gunicorn 22.0.0","+0000] [1] [INFO] Listening at: http://0.0.0.0:5000 (1)","+0000] [1] [INFO] Using worker: gthread","+0000] [8] [INFO] Booting worker with pid: 8"];let a=0;function s(e,t){const a=function(){const n=new Date;return`${n.getUTCFullYear()}-${String(n.getUTCMonth()+1).padStart(2,"0")}-${String(n.getUTCDate()).padStart(2,"0")} ${String(n.getUTCHours()).padStart(2,"0")}:${String(n.getUTCMinutes()).padStart(2,"0")}:${String(n.getUTCSeconds()).padStart(2,"0")}`}();for(let t=0;t$ ',n.appendChild(s);let i=0;const r=setInterval((()=>{s.removeChild(s.querySelector(".cursor")),s.innerHTML+=e.message[i]+'',i++,i===e.message.length&&(s.removeChild(s.querySelector(".cursor")),clearInterval(r),t())}),50)}(e[a],(()=>{a++,setTimeout(r,200)})):s(t,(()=>{setTimeout(i,200)}))}()}));
\ No newline at end of file