This commit is contained in:
@@ -127,6 +127,15 @@ def list_public_links(username: str | None = None):
|
||||
return records
|
||||
|
||||
|
||||
def get_public_profile(username: str) -> dict | None:
|
||||
with get_connection() as conn:
|
||||
row = conn.execute(
|
||||
'SELECT username, avatar_url, bio FROM users WHERE username = ?',
|
||||
(username,),
|
||||
).fetchone()
|
||||
return dict(row) if row else None
|
||||
|
||||
|
||||
def update_link(
|
||||
link_id: str,
|
||||
user_id: str,
|
||||
|
||||
Reference in New Issue
Block a user