fix: don't show votes on unread if rep system disabled

add openapi spec
This commit is contained in:
Barış Soner Uşaklı
2025-09-13 17:51:25 -04:00
parent 8a786c717e
commit dfe19a98c1
5 changed files with 9 additions and 0 deletions

View File

@@ -60,6 +60,8 @@ get:
type: string
feeds:disableRSS:
type: number
reputation:disabled:
type: number
rssFeedUrl:
type: string
title:

View File

@@ -58,6 +58,8 @@ get:
type: string
feeds:disableRSS:
type: number
reputation:disabled:
type: number
rssFeedUrl:
type: string
title:

View File

@@ -71,6 +71,8 @@ get:
type: string
feeds:disableRSS:
type: number
reputation:disabled:
type: number
rssFeedUrl:
type: string
title:

View File

@@ -19,6 +19,8 @@ get:
type: boolean
showTopicTools:
type: boolean
reputation:disabled:
type: number
nextStart:
type: number
topics:

View File

@@ -75,6 +75,7 @@ unreadController.get = async function (req, res) {
data.selectedTags = tagData.selectedTags;
data.filters = helpers.buildFilters(baseUrl, filter, req.query);
data.selectedFilter = data.filters.find(filter => filter && filter.selected);
data['reputation:disabled'] = meta.config['reputation:disabled'];
res.render('unread', data);
};