start working on friends system
This commit is contained in:
@@ -104,7 +104,7 @@ document.addEventListener('DOMContentLoaded', async function() {
|
||||
// update nav link / redirect regardless of whether a postbox exists
|
||||
const loginLink = document.getElementById("loginLink");
|
||||
if (userStatus.username === "") {
|
||||
if (window.location.pathname === "/settings") {
|
||||
if (window.location.pathname === "/settings" || window.location.pathname === "/friends") {
|
||||
window.location.href = "/login";
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user