mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	refactor(writeapi): update route prefix to api/v3, default error option
This commit is contained in:
		| @@ -158,7 +158,7 @@ SocketUser.isFollowing = async function (socket, data) { | ||||
| }; | ||||
|  | ||||
| SocketUser.follow = async function (socket, data) { | ||||
| 	sockets.warnDeprecated(socket, 'POST /api/v1/users/follow'); | ||||
| 	sockets.warnDeprecated(socket, 'POST /api/v3/users/follow'); | ||||
|  | ||||
| 	if (!socket.uid || !data) { | ||||
| 		throw new Error('[[error:invalid-data]]'); | ||||
| @@ -182,7 +182,7 @@ SocketUser.follow = async function (socket, data) { | ||||
| }; | ||||
|  | ||||
| SocketUser.unfollow = async function (socket, data) { | ||||
| 	sockets.warnDeprecated(socket, 'DELETE /api/v1/users/unfollow'); | ||||
| 	sockets.warnDeprecated(socket, 'DELETE /api/v3/users/unfollow'); | ||||
|  | ||||
| 	if (!socket.uid || !data) { | ||||
| 		throw new Error('[[error:invalid-data]]'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user