From 0e046faf4afb7db260ea4797e8cf32ad13d70c6c Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Feb 2019 11:47:25 +0900 Subject: みつけるの人気のタグを第2ソートで連合含めたユーザー数にしたりユーザーのタグ以外は除外するように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/common/views/pages/explore.vue | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/client') diff --git a/src/client/app/common/views/pages/explore.vue b/src/client/app/common/views/pages/explore.vue index 8f40e42e83..63a9a47035 100644 --- a/src/client/app/common/views/pages/explore.vue +++ b/src/client/app/common/views/pages/explore.vue @@ -11,7 +11,8 @@
- {{ tag.tag }} + {{ tag.tag }} + {{ tag.tag }}
@@ -73,7 +74,8 @@ export default Vue.extend({ sort: '+createdAt', limit: 10 }), - tags: [], + tagsLocal: [], + tagsRemote: [], faBookmark, faChartLine, faCommentAlt, faPlus, faHashtag }; }, @@ -103,9 +105,17 @@ export default Vue.extend({ created() { this.$root.api('hashtags/list', { sort: '+attachedLocalUsers', + attachedToLocalUserOnly: true, limit: 30 }).then(tags => { - this.tags = tags; + this.tagsLocal = tags; + }); + this.$root.api('hashtags/list', { + sort: '+attachedRemoteUsers', + attachedToRemoteUserOnly: true, + limit: 30 + }).then(tags => { + this.tagsRemote = tags; }); } }); @@ -118,4 +128,7 @@ export default Vue.extend({ > * margin-right 16px + &.local + font-weight bold + -- cgit v1.2.3-freya