1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-28 14:58:36 +09:00

Fix tag cloud on Welcome page (#4922)

Resolve #4754
This commit is contained in:
Satsuki Yanagi 2019-05-14 10:50:20 +09:00 committed by syuilo
parent 7c03d37caa
commit 5d42ee2359

View File

@ -4,7 +4,7 @@
<p class="empty" v-else-if="tags.length == 0"><fa icon="exclamation-circle"/>{{ $t('empty') }}</p>
<div v-else>
<vue-word-cloud
:words="tags.slice(0, 20).map(x => [x.name, x.count])"
:words="tags.slice(0, 20).map(x => [x.tag, x.count])"
:color="color"
:spacing="1">
<template slot-scope="{word, text, weight}">
@ -43,7 +43,7 @@ export default Vue.extend({
},
methods: {
fetch() {
this.$root.api('aggregation/hashtags').then(tags => {
this.$root.api('hashtags/trend').then(tags => {
this.tags = tags;
this.fetching = false;
});