diff options
| author | Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> | 2019-05-14 10:50:20 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-05-14 10:50:20 +0900 |
| commit | 5d42ee2359c1f9a0018fc3ae9c7b3f2f2c6fbccc (patch) | |
| tree | 2c6c09c1a89986d62eec2a04aa6dc39568a6561a /src | |
| parent | Add ToSUrl, repositoryUrl, feedbackUrl (#4921) (diff) | |
| download | sharkey-5d42ee2359c1f9a0018fc3ae9c7b3f2f2c6fbccc.tar.gz sharkey-5d42ee2359c1f9a0018fc3ae9c7b3f2f2c6fbccc.tar.bz2 sharkey-5d42ee2359c1f9a0018fc3ae9c7b3f2f2c6fbccc.zip | |
Fix tag cloud on Welcome page (#4922)
Resolve #4754
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/tag-cloud.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/tag-cloud.vue b/src/client/app/common/views/components/tag-cloud.vue index b5eef964b6..3fa5e3b9d4 100644 --- a/src/client/app/common/views/components/tag-cloud.vue +++ b/src/client/app/common/views/components/tag-cloud.vue @@ -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; }); |