summaryrefslogtreecommitdiff
path: root/src/api/endpoints/following/delete.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/api/endpoints/following/delete.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/following/delete.ts b/src/api/endpoints/following/delete.ts
index b75fa770e0..f8c4541552 100644
--- a/src/api/endpoints/following/delete.ts
+++ b/src/api/endpoints/following/delete.ts
@@ -18,7 +18,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
const follower = user;
// Get 'user_id' parameter
- const [userId, userIdErr] = it(params.user_id, 'id', true);
+ const [userId, userIdErr] = it(params.user_id, 'id!').get();
if (userIdErr) return rej('invalid user_id param');
// Check if the followee is yourself