mirror of
https://github.com/ihabunek/toot
synced 2025-02-03 12:47:32 +01:00
Add get_relationship method to api
This commit is contained in:
parent
a633f757b5
commit
95473fcd6e
@ -369,6 +369,11 @@ def vote(app, user, poll_id, choices: List[int]):
|
||||
return http.post(app, user, url, json=json).json()
|
||||
|
||||
|
||||
def get_relationship(app, user, account):
|
||||
params = {"id[]": account}
|
||||
return http.get(app, user, '/api/v1/accounts/relationships', params).json()[0]
|
||||
|
||||
|
||||
def mute(app, user, account):
|
||||
return _account_action(app, user, account, 'mute')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user