Frontend: Fixed quote visibility checking
ci/woodpecker/push/ociImagePush Pipeline was successful Details

This commit is contained in:
Natty 2023-11-07 17:20:13 +01:00
parent 3b8997d153
commit e1859c98bd
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 5 additions and 4 deletions

View File

@ -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 {