埋め込みUserTLでは広告が出ないように

This commit is contained in:
kakkokari-gtyih 2024-06-03 09:43:25 +09:00
parent 318d288197
commit ac5d293a99
2 changed files with 12 additions and 4 deletions

View file

@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:direction="pagination.reversed ? 'up' : 'down'"
:reversed="pagination.reversed"
:noGap="noGap"
:ad="true"
:ad="ad"
:class="$style.notes"
>
<MkNote :key="note._featuredId_ || note._prId_ || note.id" :class="$style.note" :note="note" :withHardMute="true"/>
@ -39,11 +39,14 @@ import MkPagination, { Paging } from '@/components/MkPagination.vue';
import { i18n } from '@/i18n.js';
import { infoImageUrl } from '@/instance.js';
const props = defineProps<{
const props = withDefaults(defineProps<{
pagination: Paging;
noGap?: boolean;
disableAutoLoad?: boolean;
}>();
ad?: boolean;
}>(), {
ad: true,
});
const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>();

View file

@ -10,7 +10,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="normalizedShowHeader" :class="$style.userHeader">
<MkAvatar :user="user"/>{{ user.name }} のノート
</div>
<MkNotes :class="$style.userTimelineNotes" :pagination="pagination" :noGap="true"/>
<MkNotes
:class="$style.userTimelineNotes"
:pagination="pagination"
:noGap="true"
:ad="false"
/>
</template>
<XNotFound v-else/>
</div>