summary refs log tree commit diff
path: root/src/api/routes/users/#id/relationships.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/users/#id/relationships.ts')
-rw-r--r--src/api/routes/users/#id/relationships.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/api/routes/users/#id/relationships.ts b/src/api/routes/users/#id/relationships.ts
index 3737ca00..c4c128a8 100644
--- a/src/api/routes/users/#id/relationships.ts
+++ b/src/api/routes/users/#id/relationships.ts
@@ -46,11 +46,7 @@ router.get(
 
 		for (const rmem of requested_relations.relationships) {
 			for (const smem of self_relations.relationships)
-				if (
-					rmem.to_id === smem.to_id &&
-					rmem.type === 1 &&
-					rmem.to_id !== req.user_id
-				) {
+				if (rmem.to_id === smem.to_id && rmem.type === 1 && rmem.to_id !== req.user_id) {
 					const relation_user = await User.getPublicUser(rmem.to_id);
 
 					mutual_relations.push({
@@ -64,7 +60,7 @@ router.get(
 		}
 
 		res.json(mutual_relations);
-	},
+	}
 );
 
 export default router;