From b7e1c92d5577fe730b25603673ef2e7d54e622c1 Mon Sep 17 00:00:00 2001 From: Colon <56617416+GDColon@users.noreply.github.com> Date: Fri, 29 Jan 2021 23:12:48 -0500 Subject: [PATCH] Fixed offline profiles --- api/profile.js | 6 +++++- assets/leaderboardarrow.png | Bin 0 -> 9882 bytes html/offline.html | 8 ++++++-- servers.json | 1 - 4 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 assets/leaderboardarrow.png diff --git a/api/profile.js b/api/profile.js index 8a84c42..2d22dd6 100644 --- a/api/profile.js +++ b/api/profile.js @@ -2,7 +2,11 @@ const fs = require('fs') module.exports = async (app, req, res, api, getLevels) => { - if (req.offline) return res.send("-1") + if (req.offline) { + if (!api) return res.redirect('/search/' + req.params.id) + else return res.send("-1") + } + let username = getLevels || req.params.id let accountMode = !req.query.hasOwnProperty("player") && Number(req.params.id) let foundID = app.userCache(req.id, username) diff --git a/assets/leaderboardarrow.png b/assets/leaderboardarrow.png new file mode 100644 index 0000000000000000000000000000000000000000..0ac357b7391e7ab95a87acb9163c20869cb517f0 GIT binary patch literal 9882 zcmV;LCS}=)P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGf6951U69E94oEQKACND`uK~#8N?cE93 zbzM0J@IEO-l365#XfPB?rOcU?L{dbN&|s(}L_~@v$q*G9l$1(Qp;41GN|XBfQYloV zLL~p+dCq>X{jO)NefB=X^E~Hy_y4;7*V*Tsz1QA*4fnd&z3z3d^DcCb;QjA^zjuBA z!M7PRwvY49J7=0x6=`G3qoct-=l2IJKTkDgp*!O!aMXh5T*kh4a_5BL4dxaxW5$dV zgL6gj&X{o|n6=*B<20CbPQBor8^VkkGfo<2jd#Y3Eo1KNcZbt5fqAM0@7w@p%s4$b zDxuq#8#%t{@^Gs-9oMR9n)|;ipIgDHtsS$_opGF)1@Cq-Hb3(W7tXowTOMCB$M4AJ$L1@|l>ohF_z@xD z`UT;|!w(Iw9J&c!HGD^S;qZgPe+XY2J|lcV`23{%zxiAnv*4XEV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z3@uKAdcOq~cGG$lw z2DYB^DHXaMOpKWLqfJ`2X}cg!`ZG>2cG-YZ-}&EKmaU_FS?*P?yqvKG%z}3XPPyP^ z+W7J%%}^UQwt~vcI04vY

RobTop's Purgatory

-

Hey, hey

+

 

@@ -34,10 +34,14 @@ -
+
+
+ +
+
diff --git a/servers.json b/servers.json index a29e8bb..5c4a25b 100644 --- a/servers.json +++ b/servers.json @@ -7,7 +7,6 @@ "id": "", "endpoint": "http://boomlings.com/database/", "timestampSuffix": " ago", - "downloadsDisabled": true, "demonList": "https://pointercrate.com/" },