fix: expose metadata if should be visible

This commit is contained in:
CyberL1
2026-04-19 11:19:50 +02:00
parent 9a46c3a712
commit 7619e08c9d
+2 -1
View File
@@ -43,6 +43,7 @@ router.get("/", route({ responses: { 200: { body: "UserProfileResponse" } } }),
name: true,
verified: true,
metadata_: true,
metadata_visibility: true,
visibility: true,
},
},
@@ -142,7 +143,7 @@ router.get("/", route({ responses: { 200: { body: "UserProfileResponse" } } }),
if (x.metadata_visibility != 0) {
// @ts-expect-error idk
x.metadata = x.metadata_;
publicUserConnection.metadata = x.metadata_;
}
publicUserConnections.push(publicUserConnection);