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:
Barış Soner Uşaklı
2023-09-27 10:57:00 -04:00
committed by GitHub
parent cf50b0fe49
commit 40d290c1a9
30 changed files with 443 additions and 19 deletions

View File

@@ -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
View 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);
};