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) }