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> <template>
<span class="MentionLink"> <span class="MentionLink">
<a v-if="!user" v-html="content" href="url" class="original"/> <!-- eslint-disable vue/no-v-html -->
<span v-if="user" class="new" :style="style" :class="{ '-you': isYou }" > <a
<button class="button-unstyled short" @click.prevent="onClick"> 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> <span class="shortName">@<span v-html="userName" /></span> <span v-if="isYou">(You)</span>
<!-- eslint-enable vue/no-v-html -->
</button> </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" /> @<span v-html="userNameFull" />
<!-- eslint-enable vue/no-v-html -->
</span> </span>
</span> </span>
</span> </span>
......
...@@ -169,10 +169,9 @@ const StatusContent = { ...@@ -169,10 +169,9 @@ const StatusContent = {
RichContent RichContent
}, },
mounted () { mounted () {
const { attentions } = this.status this.status.attentions.forEach(attn => {
attentions.forEach(attn => {
const { id } = attn const { id } = attn
this.$store.state.api.backendInteractor.fetchUserIfMissing(this.$store, id) this.$store.dispatch('fetchUserIfMissing', id)
}) })
}, },
methods: { 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