diff --git a/package.json b/package.json index 17eba0a4b..2012a7cbb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "0.0.1475", + "version": "0.0.1479", "license": "MIT", "description": "A miniblog-based SNS", "bugs": "https://github.com/syuilo/misskey/issues", diff --git a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag index 4ef4a2be4..ebc33d77d 100644 --- a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag +++ b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag @@ -1,6 +1,6 @@

投票

- +

{ poll.text }

@@ -87,17 +87,16 @@ offset: this.offset }).then(posts => { const poll = posts ? posts[0] : null; - if (poll == null) this.offset = 0; + if (post == null) { + this.offset = 0; + } else { + this.offset++; + } this.update({ loading: false, poll: poll }); }); }; - - this.refresh = () => { - this.offset++; - this.fetch(); - }; diff --git a/src/web/app/desktop/tags/home-widgets/trends.tag b/src/web/app/desktop/tags/home-widgets/trends.tag index 0ad7729ab..a42d0b902 100644 --- a/src/web/app/desktop/tags/home-widgets/trends.tag +++ b/src/web/app/desktop/tags/home-widgets/trends.tag @@ -1,6 +1,6 @@

トレンド

- +

{ post.text }

@{ post.user.username }

@@ -96,17 +96,16 @@ poll: false }).then(posts => { const post = posts ? posts[0] : null; - if (post == null) this.offset = 0; + if (post == null) { + this.offset = 0; + } else { + this.offset++; + } this.update({ loading: false, post: post }); }); }; - - this.refresh = () => { - this.offset++; - this.fetch(); - };