Frontend: Fixed quote visibility checking
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
3b8997d153
commit
e1859c98bd
|
@ -11,20 +11,21 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import { computed } from "vue";
|
||||
import type { Note } from "calckey-js/built/entities";
|
||||
import * as Misskey from "calckey-js";
|
||||
import { packed } from "magnetar-common";
|
||||
import { pleaseLogin } from "@/scripts/please-login";
|
||||
import * as os from "@/os";
|
||||
import { $i } from "@/account";
|
||||
import { i18n } from "@/i18n";
|
||||
|
||||
const props = defineProps<{
|
||||
note: Note;
|
||||
note: packed.PackNoteBase | Misskey.entities.Note;
|
||||
}>();
|
||||
|
||||
const canRenote = computed(
|
||||
() =>
|
||||
["public", "home"].includes(props.note.visibility) ||
|
||||
props.note.userId === $i?.id
|
||||
["public", "home", "Public", "Home"].includes(props.note.visibility) ||
|
||||
props.note.user.id === $i?.id
|
||||
);
|
||||
|
||||
function quote(): void {
|
||||
|
|
Loading…
Reference in New Issue