Skip to content

Commit 4f4e789

Browse files
author
ashariyar
committed
Merge branch 'master' into github_pages
2 parents df96004 + c57fb8e commit 4f4e789

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

CHANGELOG.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# NEXT RELEASE
22

3+
### v1.2.24
4+
* Reduce `config.toots.maxAgeInDays` from 7 to 5
5+
36
### v1.2.23
47
* Update `masto` package to 7.3.0
58

6-
### v1.2.22
7-
8-
### v1.2.21
9-
10-
### v1.2.20
11-
12-
### v1.2.19
9+
### v1.2.19 - v.1.2.22
1310
* More `tagOnlyStrings`
1411

1512
### v1.2.18

dist/api/api.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/api/api.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/config.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fedialgo",
3-
"version": "1.2.23",
3+
"version": "1.2.24",
44
"description": "Fedialgo is a package for sorting Mastodon Posts in your timeline according to a user controlled algorithm",
55
"module": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export default class MastoApi {
326326
logger.debug(`maxTootedAt: ${quotedISOFmt(maxTootedAt)}, maxId: ${maxId}, cutoffAt: ${quotedISOFmt(cutoffAt)}`);
327327
}
328328

329-
// getApiRecords() returns Toots that haven't had completeProperties() called on them
329+
// getApiRecords() returns Toots that haven't had completeProperties() called on them yet
330330
// which we don't use because breakIf() calls mergeTootsToFeed() on each page of results
331331
const _incompleteToots = await this.getApiObjsAndUpdate<mastodon.v1.Status>({
332332
fetchGenerator: () => this.api.v1.timelines.home.list,

src/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ interface ApiConfig {
5252
backgroundLoadIntervalMinutes: number;
5353
backgroundLoadSleepBetweenRequestsMS: number;
5454
data: Readonly<ApiDataConfig>;
55-
daysBeforeFullCacheRefresh: number; // How many days before the cache is considered stale and needs to be refreshed completely
55+
daysBeforeFullCacheRefresh: number; // How many days before the cache is considered stale and needs to be refreshed completely
5656
defaultRecordsPerPage: number;
5757
errorMsgs: {
5858
accessTokenRevoked: string;
@@ -486,7 +486,7 @@ class Config implements ConfigType {
486486
batchCompleteSleepBetweenMS: 210, // How long to wait between batches of Toot.completeProperties() calls
487487
completeAfterMinutes: MINUTES_IN_DAY, // Toots younger than this will periodically have their derived fields reevaluated by Toot.completeToot()
488488
filterUpdateBatchSize: 240, // How many new Toots before calling updateFilterOptions()
489-
maxAgeInDays: 7, // How long to keep toots in the cache before removing them
489+
maxAgeInDays: 5, // How long to keep toots in the cache before removing them
490490
maxContentPreviewChars: 110, // How many characters to show in a Toot preview
491491
maxTimelineLength: 3_000, // Max toots to keep in browser storage. Larger cache doesn't seem to impact performance much
492492
minCharsForLanguageDetect: 8, // Min number of characters in a toot before we try to detect its language
@@ -610,6 +610,8 @@ class Config implements ConfigType {
610610
"an",
611611
"analysis",
612612
"and",
613+
"andrew",
614+
"andy",
613615
"angeles",
614616
"anger",
615617
"angrier",

0 commit comments

Comments
 (0)