feat: add get liked post and update privacy
This commit is contained in:
@@ -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})
|
||||
Reference in New Issue
Block a user