changes in topic list query and display of topic names

This commit is contained in:
2026-01-11 22:53:50 -07:00
parent a9c8a574e1
commit 488bbf9220
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -229,13 +229,13 @@ func AmListTopics(ctx context.Context, confid int32, uid int32, viewOption int,
if !ignoreSticky {
tail = "(t.sticky = 1 OR " + tail + ")"
}
whereClause = "t.archived = 0 AND hidden = 0 AND " + tail
whereClause = "t.archived = 0 AND (s.hidden IS NULL OR s.hidden = 0) AND " + tail
case TopicViewActive, TopicViewAllVisible:
whereClause = "t.archived = 0 AND hidden = 0"
whereClause = "t.archived = 0 AND (s.hidden IS NULL OR s.hidden = 0)"
case TopicViewHidden:
whereClause = "hidden = 1"
whereClause = "s.hidden = 1"
case TopicViewArchive:
whereClause = "t.archived = 1 AND hidden = 0"
whereClause = "t.archived = 1 AND (s.hidden IS NULL OR s.hidden = 0)"
default:
return nil, errors.New("invalid view option specified")
}
+1 -1
View File
@@ -83,7 +83,7 @@
</td>
<td class="px-4 py-3 text-sm">
<a href="{{ urlStem }}/r/{{ t.Number }}"
class="text-blue-700 hover:text-blue-900 font-medium">{{ t.Name }}</a>
class="text-blue-700 hover:text-blue-900 font-medium">{{ t.Name | raw }}</a>
</td>
<td class="px-4 py-3 whitespace-nowrap text-sm text-right">
<a href="{{ urlStem }}/r/{{ t.Number }}"