mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Got trolled by @neet
This commit is contained in:
parent
eb3880b435
commit
3ac2a45244
1 changed files with 3 additions and 3 deletions
|
@ -953,7 +953,7 @@ function Poll({ poll, readOnly, onUpdate = () => {} }) {
|
|||
setUIState('loading');
|
||||
(async () => {
|
||||
try {
|
||||
const pollResponse = await masto.v1.poll.fetch(id);
|
||||
const pollResponse = await masto.v1.polls.fetch(id);
|
||||
onUpdate(pollResponse);
|
||||
} catch (e) {
|
||||
// Silent fail
|
||||
|
@ -1038,7 +1038,7 @@ function Poll({ poll, readOnly, onUpdate = () => {} }) {
|
|||
});
|
||||
console.log(votes);
|
||||
setUIState('loading');
|
||||
const pollResponse = await masto.v1.poll.vote(id, {
|
||||
const pollResponse = await masto.v1.polls.vote(id, {
|
||||
choices: votes,
|
||||
});
|
||||
console.log(pollResponse);
|
||||
|
@ -1087,7 +1087,7 @@ function Poll({ poll, readOnly, onUpdate = () => {} }) {
|
|||
setUIState('loading');
|
||||
(async () => {
|
||||
try {
|
||||
const pollResponse = await masto.v1.poll.fetch(id);
|
||||
const pollResponse = await masto.v1.polls.fetch(id);
|
||||
onUpdate(pollResponse);
|
||||
} catch (e) {
|
||||
// Silent fail
|
||||
|
|
Loading…
Reference in a new issue