Public contacts

This commit is contained in:
2025-08-08 23:31:05 +08:00
parent c514adfbbf
commit 7ddb904335
7 changed files with 1838 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ public class AccountController(
var account = await db.Accounts
.Include(e => e.Badges)
.Include(e => e.Profile)
.Include(e => e.Contacts.Where(c => c.IsPublic))
.Where(a => a.Name == name)
.FirstOrDefaultAsync();
if (account is null) return new NotFoundResult();