From 613b1618482fdd16ad80d8dd8a7e3ab0345617f2 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 17:11:01 +0200 Subject: browse like its a profile, very nice --- bucky/db/index.js | 2 +- public/assets/js/lib/router.js | 6 +++--- views/partials/hootstream.ejs | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bucky/db/index.js b/bucky/db/index.js index 2a1a3bf..2e6deab 100644 --- a/bucky/db/index.js +++ b/bucky/db/index.js @@ -129,7 +129,7 @@ db.getHootstreamFiles = ({ limit, offset, thread, keyword, username }) => builder.where("threads.id", thread); } if (username) { - builder.where("comments.username", username); + builder.where("files.username", username); } }) .orderBy("files.id", "desc") diff --git a/public/assets/js/lib/router.js b/public/assets/js/lib/router.js index 848c813..b6e29be 100644 --- a/public/assets/js/lib/router.js +++ b/public/assets/js/lib/router.js @@ -8,10 +8,10 @@ var SiteRouter = Router.extend({ "/stream": "stream", "/stream/thread": "stream", "/stream/thread/:id": "streamThread", - "/stream/keyword": "streamKeyword", + "/stream/keyword": "stream", "/stream/keyword/:keyword": "streamKeyword", - "/stream/profile": "streamProfile", - "/stream/profile/:username": "streamItem", + "/stream/profile": "stream", + "/stream/profile/:username": "streamProfile", "/login": "login", "/logout": "logout", "/signup": "signup", diff --git a/views/partials/hootstream.ejs b/views/partials/hootstream.ejs index b94d62c..86282aa 100644 --- a/views/partials/hootstream.ejs +++ b/views/partials/hootstream.ejs @@ -10,10 +10,10 @@