Skip to content
Snippets Groups Projects
Commit aec05686 authored by HJ's avatar HJ :fire:
Browse files

lint, fix warnings

parent b0ae32e3
No related branches found
No related tags found
2 merge requests!1421Update MASTER for 2.4.2,!1392Status HTML parsing - better emoji and mentions rendering
<template>
<span class="MentionLink">
<a v-if="!user" v-html="content" href="url" class="original"/>
<span v-if="user" class="new" :style="style" :class="{ '-you': isYou }" >
<button class="button-unstyled short" @click.prevent="onClick">
<!-- eslint-disable vue/no-v-html -->
<a
v-if="!user"
href="url"
class="original"
v-html="content"
/>
<!-- eslint-enable vue/no-v-html -->
<span
v-if="user"
class="new"
:style="style"
:class="{ '-you': isYou }"
>
<button
class="button-unstyled short"
@click.prevent="onClick"
>
<!-- eslint-disable vue/no-v-html -->
<span class="shortName">@<span v-html="userName" /></span> <span v-if="isYou">(You)</span>
<!-- eslint-enable vue/no-v-html -->
</button>
<span class="full" v-if="userName !== userNameFull">
<span
v-if="userName !== userNameFull"
class="full"
>
<!-- eslint-disable vue/no-v-html -->
@<span v-html="userNameFull" />
<!-- eslint-enable vue/no-v-html -->
</span>
</span>
</span>
......
......@@ -169,10 +169,9 @@ const StatusContent = {
RichContent
},
mounted () {
const { attentions } = this.status
attentions.forEach(attn => {
this.status.attentions.forEach(attn => {
const { id } = attn
this.$store.state.api.backendInteractor.fetchUserIfMissing(this.$store, id)
this.$store.dispatch('fetchUserIfMissing', id)
})
},
methods: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment