埋め込み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'" :direction="pagination.reversed ? 'up' : 'down'"
:reversed="pagination.reversed" :reversed="pagination.reversed"
:noGap="noGap" :noGap="noGap"
:ad="true" :ad="ad"
:class="$style.notes" :class="$style.notes"
> >
<MkNote :key="note._featuredId_ || note._prId_ || note.id" :class="$style.note" :note="note" :withHardMute="true"/> <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 { i18n } from '@/i18n.js';
import { infoImageUrl } from '@/instance.js'; import { infoImageUrl } from '@/instance.js';
const props = defineProps<{ const props = withDefaults(defineProps<{
pagination: Paging; pagination: Paging;
noGap?: boolean; noGap?: boolean;
disableAutoLoad?: boolean; disableAutoLoad?: boolean;
}>(); ad?: boolean;
}>(), {
ad: true,
});
const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>(); 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"> <div v-if="normalizedShowHeader" :class="$style.userHeader">
<MkAvatar :user="user"/>{{ user.name }} のノート <MkAvatar :user="user"/>{{ user.name }} のノート
</div> </div>
<MkNotes :class="$style.userTimelineNotes" :pagination="pagination" :noGap="true"/> <MkNotes
:class="$style.userTimelineNotes"
:pagination="pagination"
:noGap="true"
:ad="false"
/>
</template> </template>
<XNotFound v-else/> <XNotFound v-else/>
</div> </div>