feat: add get liked post and update privacy

This commit is contained in:
firedotguy
2026-01-30 15:39:52 +03:00
parent 49427a5535
commit aa20199ebe
3 changed files with 22 additions and 3 deletions

View File

@@ -16,6 +16,14 @@ def update_profile(token: str, bio: str | None = None, display_name: str | None
data['bannerId'] = banner_id
return fetch(token, 'put', 'users/me', data)
def update_privacy(token: str, wall_closed: bool = False, private: bool = False):
data = {}
if wall_closed:
data['wallClosed'] = wall_closed
if private:
data['isPrivate'] = private
return fetch(token, 'put', 'users/me/privacy', data)
def follow(token: str, username: str):
return fetch(token, 'post', f'users/{username}/follow')