#289 mastodon rel=me - also for home

This commit is contained in:
Andrea 2021-12-14 15:40:33 +01:00
parent 889ba7a50d
commit 14613cd807
1 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,7 @@
<Share/> <Share/>
</section> </section>
</div> </div>
<div v-else-if="user.username"> <div v-else-if="user.username" class="my-5">
<h2 class="text-nowrap mb-3"> <h2 class="text-nowrap mb-3">
<Avatar :user="user"/> <Avatar :user="user"/>
@{{username}} @{{username}}
@ -103,6 +103,8 @@
</p> </p>
</div> </div>
<a v-for="link in verifiedLinks" :href="link" rel="me">&nbsp;</a>
<Ban :user="user"/> <Ban :user="user"/>
</div> </div>
<NotFound v-else/> <NotFound v-else/>
@ -157,6 +159,9 @@
return this.user.username; return this.user.username;
}, },
verifiedLinks() {
return [...new Set(Object.values(this.user.profiles).map(p => Object.keys(p.verifiedLinks || {})).flat())];
},
}, },
watch: { watch: {
profile() { profile() {