fix retweet and favorites
This commit is contained in:
parent
54b440b9f5
commit
00b523ddac
2 changed files with 6 additions and 5 deletions
|
@ -30,7 +30,8 @@
|
||||||
v-if="!mergedConfig.hidePostStats && status.fave_num > 0"
|
v-if="!mergedConfig.hidePostStats && status.fave_num > 0"
|
||||||
class="action-counter"
|
class="action-counter"
|
||||||
>
|
>
|
||||||
{{ status.fave_num }}
|
<!-- SHARKEY-SPECIFIC: disable favorite count because devs make them hearts for some reason -->
|
||||||
|
<!-- {{ status.fave_num }} -->
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -814,22 +814,22 @@ const verifyCredentials = (user) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const favorite = ({ id, credentials }) => {
|
const favorite = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_FAVORITE_URL(id), method: 'POST', credentials })
|
return promisedRequest({ url: MASTODON_FAVORITE_URL(id), method: 'POST', credentials, payload: {} })
|
||||||
.then((data) => parseStatus(data))
|
.then((data) => parseStatus(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
const unfavorite = ({ id, credentials }) => {
|
const unfavorite = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_UNFAVORITE_URL(id), method: 'POST', credentials })
|
return promisedRequest({ url: MASTODON_UNFAVORITE_URL(id), method: 'POST', credentials, payload: {} })
|
||||||
.then((data) => parseStatus(data))
|
.then((data) => parseStatus(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
const retweet = ({ id, credentials }) => {
|
const retweet = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_RETWEET_URL(id), method: 'POST', credentials })
|
return promisedRequest({ url: MASTODON_RETWEET_URL(id), method: 'POST', credentials, payload: {} })
|
||||||
.then((data) => parseStatus(data))
|
.then((data) => parseStatus(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
const unretweet = ({ id, credentials }) => {
|
const unretweet = ({ id, credentials }) => {
|
||||||
return promisedRequest({ url: MASTODON_UNRETWEET_URL(id), method: 'POST', credentials })
|
return promisedRequest({ url: MASTODON_UNRETWEET_URL(id), method: 'POST', credentials, payload: {} })
|
||||||
.then((data) => parseStatus(data))
|
.then((data) => parseStatus(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue