[Frontend] Incoming media that isnt marked as sensitive but is from a cwed post is now sensitve #74
1 changed files with 1 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue