diff --git a/packages/frontend/src/components/MkPagination.vue b/packages/frontend/src/components/MkPagination.vue
index 598529bf58..b361d568e8 100644
--- a/packages/frontend/src/components/MkPagination.vue
+++ b/packages/frontend/src/components/MkPagination.vue
@@ -21,14 +21,14 @@
-
+
{{ i18n.ts.loadMore }}
-
+
-
+
{{ i18n.ts.loadMore }}
@@ -50,6 +50,7 @@ import { i18n } from '@/i18n';
const SECOND_FETCH_LIMIT = 30;
const TOLERANCE = 16;
+const APPEAR_MINIMUM_INTERVAL = 600;
export type Paging = {
endpoint: E;
@@ -71,6 +72,16 @@ export type Paging
pageEl?: HTMLElement;
};
+
+type MisskeyEntityMap = Map;
+
+function arrayToEntries(entities: MisskeyEntity[]): [string, MisskeyEntity][] {
+ return entities.map(en => [en.id, en]);
+}
+
+function concatMapWithArray(map: MisskeyEntityMap, entities: MisskeyEntity[]): MisskeyEntityMap {
+ return new Map([...map, ...arrayToEntries(entities)]);
+}