pls daddy

This commit is contained in:
cutestnekoaqua 2022-12-07 01:43:16 +01:00
parent 8594f0e216
commit e67e798c8b
2 changed files with 5 additions and 2 deletions

View file

@ -1,11 +1,13 @@
<template> <template>
<div class="_block" :class="$style.mkmoved"><i class="fas fa-info-circle" style="margin-right: 8px;"></i>{{ i18n.ts.accountMoved }}<MkA :class="$style.link" class="link" :to="href">{{ acct }}</MkA></div> <div class="_block" :class="$style.mkmoved"><i class="fas fa-info-circle" style="margin-right: 8px;"></i>{{ i18n.ts.accountMoved }}<MkMention :class="$style.link" class="link" :username="acct" :host="host"/></div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import MkMention from './MkMention.vue';
const props = defineProps<{ const props = defineProps<{
acct: string; acct: string;
host: string;
}>(); }>();
const href = $computed(() => `/${props.acct}`); const href = $computed(() => `/${props.acct}`);
</script> </script>

View file

@ -8,7 +8,7 @@
<div class="profile"> <div class="profile">
<MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/> <MkRemoteCaution v-if="user.host != null" :href="user.url" class="warn"/>
<MkMoved v-if="user.movedToUri" :acct="user.movedToUri" /> <MkMoved v-if="user.movedToUri" :host="user.movedToUri.host" :acct="user.movedToUri.username" />
<div :key="user.id" class="_block main"> <div :key="user.id" class="_block main">
<div class="banner-container" :style="style"> <div class="banner-container" :style="style">
@ -130,6 +130,7 @@ import * as os from '@/os';
import { useRouter } from '@/router'; import { useRouter } from '@/router';
import { i18n } from '@/i18n'; import { i18n } from '@/i18n';
import { $i } from '@/account'; import { $i } from '@/account';
import { host } from '@/config';
const XPhotos = defineAsyncComponent(() => import('./index.photos.vue')); const XPhotos = defineAsyncComponent(() => import('./index.photos.vue'));
const XActivity = defineAsyncComponent(() => import('./index.activity.vue')); const XActivity = defineAsyncComponent(() => import('./index.activity.vue'));