mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-26 17:29:53 +01:00
feat(writeapi): added group joining and deletion
This commit is contained in:
@@ -24,6 +24,8 @@ Groups.create = async function (socket, data) {
|
||||
};
|
||||
|
||||
Groups.join = async (socket, data) => {
|
||||
sockets.warnDeprecated(socket, 'PUT /api/v1/groups/:slug/membership/:uid');
|
||||
|
||||
if (!data) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user