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

@@ -39,4 +39,7 @@ def repost(token: str, id: str, content: str | None = None):
return fetch(token, 'post', f'posts/{id}/repost', data)
def view_post(token: str, id: str):
return fetch(token, 'post', f'posts/{id}/view')
return fetch(token, 'post', f'posts/{id}/view')
def get_liked_posts(token: str, username: str, limit: int = 20, cursor: int = 0):
return fetch(token, 'get', f'posts/user/{username}/liked', {'limit': limit, 'cursor': cursor})