This commit is contained in:
@@ -71,6 +71,10 @@ export const listAll = query({
|
||||
const users = await ctx.db.query("userProfiles").collect();
|
||||
const results = [];
|
||||
for (const user of users) {
|
||||
// Ghosts are placeholder profiles for imported messages —
|
||||
// keep them out of the server-wide member list so they
|
||||
// don't pollute presence / DM-target / mention pickers.
|
||||
if (user.isGhost) continue;
|
||||
let avatarUrl: string | null = null;
|
||||
if (user.avatarStorageId) {
|
||||
avatarUrl = await getPublicStorageUrl(ctx, user.avatarStorageId);
|
||||
|
||||
Reference in New Issue
Block a user