埋め込みUserTLでは広告が出ないように
This commit is contained in:
parent
318d288197
commit
ac5d293a99
|
@ -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>>();
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue