mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
feat(writeapi): added group joining and deletion
This commit is contained in:
@@ -19,6 +19,8 @@ SocketGroups.before = async (socket, method, data) => {
|
||||
};
|
||||
|
||||
SocketGroups.join = async (socket, data) => {
|
||||
sockets.warnDeprecated(socket, 'PUT /api/v1/groups/:slug/membership/:uid');
|
||||
|
||||
if (socket.uid <= 0) {
|
||||
throw new Error('[[error:invalid-uid]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user