show subscribed threads in inbox even when there's no unreads
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user