Rearchitect profile, support pins, Profile -> User

This commit is contained in:
Zed 2022-01-23 07:04:50 +01:00
commit 51ae076ea0
23 changed files with 375 additions and 286 deletions

View file

@ -25,7 +25,7 @@ proc createSearchRouter*(cfg: Config) =
of users:
if "," in @"q":
redirect("/" & @"q")
let users = await getSearch[Profile](query, getCursor())
let users = await getSearch[User](query, getCursor())
resp renderMain(renderUserSearch(users, prefs), request, cfg, prefs)
of tweets:
let