fix(status): disable reblog for non-public posts

closes #870
This commit is contained in:
三咲智子 2023-01-08 21:24:59 +08:00
parent 5075fdf194
commit b7b6f0d1ca
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 29 additions and 11 deletions

View file

@ -14,6 +14,7 @@ const { details, command } = $(props)
const {
status,
isLoading,
canReblog,
toggleBookmark,
toggleFavourite,
toggleReblog,
@ -62,7 +63,7 @@ const reply = () => {
icon="i-ri:repeat-line"
active-icon="i-ri:repeat-fill"
:active="!!status.reblogged"
:disabled="isLoading.reblogged"
:disabled="isLoading.reblogged || !canReblog"
:command="command"
@click="toggleReblog()"
>