fix: markread selector

This commit is contained in:
Barış Soner Uşaklı
2021-02-08 11:36:36 -05:00
parent 030ecffa15
commit a4878a5b22
3 changed files with 59 additions and 22 deletions

View File

@@ -48,6 +48,7 @@ unreadController.get = async function (req, res) {
data.allCategoriesUrl = 'unread' + helpers.buildQueryString(req.query, 'cid', '');
data.selectedCategory = categoryData.selectedCategory;
data.selectedCids = categoryData.selectedCids;
data.selectCategoryLabel = '[[unread:mark_as_read]]';
if (req.originalUrl.startsWith(nconf.get('relative_path') + '/api/unread') || req.originalUrl.startsWith(nconf.get('relative_path') + '/unread')) {
data.title = '[[pages:unread]]';
data.breadcrumbs = helpers.buildBreadcrumbs([{ text: '[[unread:title]]' }]);