diff --git a/apps/users.lua b/apps/users.lua index 451511a..43620ac 100644 --- a/apps/users.lua +++ b/apps/users.lua @@ -298,6 +298,15 @@ app:get("user_inbox", "/:username/inbox", function(self) self.new_posts = {} local subscription = Subscriptions:find({user_id = me.id}) if subscription then + self.all_subscriptions = db.query([[ + SELECT threads.title AS thread_title, threads.slug AS thread_slug + FROM + threads + JOIN + subscriptions ON subscriptions.thread_id = threads.id + WHERE + subscriptions.user_id = ? + ]], me.id) local q = [[ WITH thread_metadata AS ( SELECT diff --git a/views/user/inbox.etlua b/views/user/inbox.etlua index 869343d..559d126 100644 --- a/views/user/inbox.etlua +++ b/views/user/inbox.etlua @@ -2,6 +2,21 @@