mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-13 20:53:20 +00:00
fix: expose metadata if should be visible
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user