fix: piefed adapter route update -> poll_vote -> post_view -> { post_view }
This commit is contained in:
6 files changed
+9
-26
No files matched your search
@@ -965,7 +965,7 @@ export class PiefedClient implements BaseClient {
|
||||
await this.#client.POST('/api/alpha/user/set_flair', { body: params })
|
||||
).data!
|
||||
|
||||
return toPersonView(response.person_view)
|
||||
return toPersonView(response.person_view!)
|
||||
}
|
||||
|
||||
async editSite(): ReturnType<BaseClient['editSite']> {
|
||||
@@ -1028,7 +1028,7 @@ export class PiefedClient implements BaseClient {
|
||||
await this.#client.POST('/api/alpha/post/poll_vote', { body: params })
|
||||
).data!
|
||||
|
||||
return toPostView(response)
|
||||
return toPostView(response.post_view)
|
||||
}
|
||||
|
||||
async setNote(
|
||||
|
||||
Reference in new issue
Block a user