feat: improved news
This commit is contained in:
@@ -5,4 +5,9 @@ export async function getCurrentUser() {
|
||||
const userId = await getSessionUserId();
|
||||
if (!userId) return null;
|
||||
return findUserById(userId);
|
||||
}
|
||||
|
||||
export async function getUser(id: string) {
|
||||
if (!id) return null;
|
||||
return findUserById(id);
|
||||
}
|
||||
Reference in New Issue
Block a user