feat: add tools to recent/unread (#8477)

* feat: add tools to recent/unread

* fix: open api spec

* fix: more api spec
This commit is contained in:
Barış Soner Uşaklı
2020-07-08 14:09:10 -04:00
committed by GitHub
parent 14eafcb6b8
commit 658dd03b03
16 changed files with 139 additions and 50 deletions

View File

@@ -95,6 +95,7 @@ categoryController.get = async function (req, res, next) {
categoryData.description = translator.escape(categoryData.description);
categoryData.privileges = userPrivileges;
categoryData.showSelect = userPrivileges.editable;
categoryData.showTopicTools = userPrivileges.editable;
categoryData.rssFeedUrl = nconf.get('url') + '/category/' + categoryData.cid + '.rss';
if (parseInt(req.uid, 10)) {
categories.markAsRead([cid], req.uid);