fix: piefed adapter route update -> poll_vote -> post_view -> { post_view }

This commit is contained in:
Xylight committed 2025-11-30 20:19:00 -08:00
1 parent a3ff87ebc4
commit 86a98a4395
6 files changed
+9 -26

No files matched your search

+2 -2
View File
@@ -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(