reply chain fixes, refactoring

This commit is contained in:
biglyderv 2025-02-26 19:50:37 -05:00
parent f0782b0472
commit 93027bfd09
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
4 changed files with 42 additions and 43 deletions

View file

@ -63,14 +63,14 @@ async function auther(req, res, next) {
function initr(req, res, next) {
let headerCtx = [
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
{ link: '/walls/get/home/0', icon: '/icon.svg', name: 'DervNet' },
{ link: '/walls/list', icon: '/walls.svg', name: 'Explore' },
{ link: '/you/logout', icon: '/logout.svg', name: 'Leave' } // fix icon
];
if (!res.auth || !res.auth.valid) {
headerCtx = [
{ link: '/walls/get/home', icon: '/icon.svg', name: 'DervNet' },
{ link: '/walls/get/home/0', icon: '/icon.svg', name: 'DervNet' },
{ link: '/walls/list', icon: '/walls.svg', name: 'Explore' },
{ link: '/you/login', icon: '/login.svg', name: 'Log in' },
{ link: '/you/new', icon: '/join.svg', name: 'Join' }