From 2c7532434ae4e97a72e499bc72101becb013a369 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Fri, 30 Aug 2024 18:49:12 -0700 Subject: [PATCH] My List: show owned forums only when not official forums --- pkg/models/forum.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/models/forum.go b/pkg/models/forum.go index e83c06c..d6446cf 100644 --- a/pkg/models/forum.go +++ b/pkg/models/forum.go @@ -140,7 +140,10 @@ func PaginateForums(user *User, categories []string, search *Search, subscribed WHERE user_id = ? AND forum_id = forums.id ) - OR forums.owner_id = ? + OR ( + forums.owner_id = ? + AND (forums.category = '' OR forums.category IS NULL) + ) `) placeholders = append(placeholders, user.ID, user.ID) }