user mention (#3771)

This commit is contained in:
MeiMei
2018-12-27 23:14:30 +09:00
committed by syuilo
parent 8573e258f8
commit fdd42fc2d7
11 changed files with 68 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
<span class="notes-count"><b>{{ user.notesCount | number }}</b>{{ $t('posts') }}</span>
<router-link :to="user | userPage('following')" class="following clickable"><b>{{ user.followingCount | number }}</b>{{ $t('following') }}</router-link>
<router-link :to="user | userPage('followers')" class="followers clickable"><b>{{ user.followersCount | number }}</b>{{ $t('followers') }}</router-link>
<button @click="mention" :title="$t('mention')"><fa icon="at"/></button>
</div>
</div>
</div>
@@ -77,6 +78,9 @@ export default Vue.extend({
}
},
methods: {
mention() {
this.$post({ mention: this.user });
},
onScroll() {
const banner = this.$refs.banner as any;