mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
Tag follow (#12041)
* feat: tag follow * on tag delete remove it from following users * feat: on tag rename update user followed tags and move the * add new filter on /notifications * feat: openapi updates * chore: up themes * chore: up peace * refactor: remove unused title
This commit is contained in:
committed by
GitHub
parent
cf50b0fe49
commit
40d290c1a9
@@ -5,11 +5,11 @@ module.exports = {
|
||||
users: require('./users'),
|
||||
groups: require('./groups'),
|
||||
topics: require('./topics'),
|
||||
tags: require('./tags'),
|
||||
posts: require('./posts'),
|
||||
chats: require('./chats'),
|
||||
categories: require('./categories'),
|
||||
flags: require('./flags'),
|
||||
files: require('./files'),
|
||||
|
||||
utils: require('./utils'),
|
||||
};
|
||||
|
||||
13
src/api/tags.js
Normal file
13
src/api/tags.js
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
const topics = require('../topics');
|
||||
|
||||
const tagsAPI = module.exports;
|
||||
|
||||
tagsAPI.follow = async function (caller, data) {
|
||||
await topics.followTag(data.tag, caller.uid);
|
||||
};
|
||||
|
||||
tagsAPI.unfollow = async function (caller, data) {
|
||||
await topics.unfollowTag(data.tag, caller.uid);
|
||||
};
|
||||
Reference in New Issue
Block a user