summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-06-13 18:22:49 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-06-13 18:22:49 +0900
commit6e59798e8202b9faca606f9050d56f38706ee501 (patch)
tree61d3edaa9c4af834d9445ea6fe3498a586e1a3c1 /src/client/app
parentMerge branch 'develop' (diff)
parent11.20.4 (diff)
downloadmisskey-6e59798e8202b9faca606f9050d56f38706ee501.tar.gz
misskey-6e59798e8202b9faca606f9050d56f38706ee501.tar.bz2
misskey-6e59798e8202b9faca606f9050d56f38706ee501.zip
Merge branch 'develop'
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/scripts/paging.ts9
-rw-r--r--src/client/app/store.ts1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/client/app/common/scripts/paging.ts b/src/client/app/common/scripts/paging.ts
index c13a607e6f..cf36a692d2 100644
--- a/src/client/app/common/scripts/paging.ts
+++ b/src/client/app/common/scripts/paging.ts
@@ -5,6 +5,7 @@ export default (opts) => ({
return {
items: [],
queue: [],
+ offset: 0,
fetching: true,
moreFetching: false,
inited: false,
@@ -80,6 +81,7 @@ export default (opts) => ({
this.items = x;
this.more = false;
}
+ this.offset = x.length;
this.inited = true;
this.fetching = false;
if (opts.onInited) opts.onInited(this);
@@ -96,7 +98,11 @@ export default (opts) => ({
if (params && params.then) params = await params;
await this.$root.api(this.pagination.endpoint, {
limit: (this.pagination.limit || 10) + 1,
- untilId: this.items[this.items.length - 1].id,
+ ...(this.pagination.endpoint === 'notes/search' ? {
+ offset: this.offset,
+ } : {
+ untilId: this.items[this.items.length - 1].id,
+ }),
...params
}).then(x => {
if (x.length == (this.pagination.limit || 10) + 1) {
@@ -107,6 +113,7 @@ export default (opts) => ({
this.items = this.items.concat(x);
this.more = false;
}
+ this.offset += x.length;
this.moreFetching = false;
}, e => {
this.moreFetching = false;
diff --git a/src/client/app/store.ts b/src/client/app/store.ts
index f229a2b7be..6f545eb09b 100644
--- a/src/client/app/store.ts
+++ b/src/client/app/store.ts
@@ -33,6 +33,7 @@ const defaultSettings = {
mutedWords: [],
gamesReversiShowBoardLabels: false,
gamesReversiUseAvatarStones: true,
+ disableAnimatedMfm: false,
};
const defaultDeviceSettings = {