[Frontend] Incoming media that isnt marked as sensitive but is from a cwed post is now sensitve #74

Open
leah wants to merge 3 commits from feature/mark-incoming-cwed-post-media-as-sensitive into main
Showing only changes of commit 78adbebb18 - Show all commits

View file

@ -30,7 +30,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<script lang="ts" setup>
import {onMounted, ref} from 'vue';
import { ref } from 'vue';
import * as Misskey from 'misskey-js';
import MkMediaList from '@/components/MkMediaList.vue';
import MkPoll from '@/components/MkPoll.vue';
@ -44,13 +44,6 @@ const props = defineProps<{
const isLong = shouldCollapsed(props.note, []);
const collapsed = ref(isLong);
onMounted(() => {
props.note.files.forEach((file) => {
file.isSensitive = props.note.cw !== null;
});
});
</script>
<style lang="scss" module>