GoToSocial/internal
kim f4fcffc8b5
[bugfix] use a much shorter refresh limit for statuses with polls (#2453)
* specifically use a much shorter refresh limit for statuses with polls

* allow specifying whether status must be upToDate in calls to Get(Visible)?TargetStatusBy_(), limit force refresh to 5 minute cooldown

* remove the PollID check from statusUpToDate()

* remove unnecessary force flag checks

* remove unused field

* check refresh status error

* use argument name 'refresh' instead of 'upToDate' to better fit with the codebase

* add statuses_poll_id_idx

* remove the definitely-not copy-pasted comment i accidentally typed out in full

* only synchronously refresh if the refresh flag is provided, otherwise do async

* fix wrong force value being provided for async

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2023-12-15 15:24:39 +01:00
..
ap [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
api [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
cache [bugfix] use a much shorter refresh limit for statuses with polls (#2453) 2023-12-15 15:24:39 +01:00
cleaner [bugfix] process account delete side effects in serial, not in parallel (#2360) 2023-11-14 15:57:25 +01:00
config [bug] Fix an import statement in the gen template (#2426) 2023-12-08 13:07:34 +01:00
db [bugfix] use a much shorter refresh limit for statuses with polls (#2453) 2023-12-15 15:24:39 +01:00
email [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
federation [bugfix] use a much shorter refresh limit for statuses with polls (#2453) 2023-12-15 15:24:39 +01:00
gotosocial [feature/performance] Wrap incoming HTTP requests in timeout handler (#2353) 2023-11-13 19:48:51 +01:00
gtscontext [chore] ensure worker contexts have request ID (#2120) 2023-08-15 17:01:01 +01:00
gtserror [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
gtsmodel [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
httpclient [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
id [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
iotools [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
language [feature] Set/show instance language(s); show post language on frontend (#2362) 2023-11-17 11:35:28 +01:00
log [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
media [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
messages [feature] List replies policy, refactor async workers (#2087) 2023-08-09 19:14:33 +02:00
metrics [feature] Initial Prometheus metrics implementation (#2334) 2023-11-20 16:43:55 +01:00
middleware [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00
oauth [chore] Enable S256 code challenge (#2224) 2023-09-28 11:21:19 +02:00
oidc [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
processing [bugfix] use a much shorter refresh limit for statuses with polls (#2453) 2023-12-15 15:24:39 +01:00
regexes [feature/performance] support uncaching remote emoji + scheduled cleanup functions (#1987) 2023-07-24 13:14:13 +01:00
router [bugfix] Let templates deref pointers, as a treat (#2448) 2023-12-12 14:44:54 +00:00
scheduler [feature] add support for polls + receiving federated status edits (#2330) 2023-11-08 14:32:17 +00:00
state [feature] add per-uri dereferencer locks (#2291) 2023-10-31 11:12:22 +00:00
storage [feature/bugfix] Probe S3 storage for CSP uri, add config flag for extra URIs (#2134) 2023-08-20 13:35:55 +02:00
stream [feature] Add List functionality (#1802) 2023-05-25 10:37:38 +02:00
text [feature] Media attachment placeholders (#2331) 2023-11-10 19:29:26 +01:00
timeline [bugfix] Ensure pre renders as expected, fix orderedCollectionPage (#2434) 2023-12-10 12:36:00 +01:00
tracing [chore] update otel -> v1.20.0 (#2358) 2023-11-13 11:08:02 +01:00
trans [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
transport [feature] Add /api/v1/admin/debug/apurl endpoint (#2359) 2023-11-27 14:02:52 +00:00
typeutils [bugfix] poll vote count fixes (#2444) 2023-12-12 13:47:07 +00:00
uris [feature] Media attachment placeholders (#2331) 2023-11-10 19:29:26 +01:00
util [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
validate [feature] Allow full BCP 47 in language inputs (#2067) 2023-08-07 10:25:54 +02:00
visibility [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
web [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
workers [feature] support canceling scheduled tasks, some federation API performance improvements (#2329) 2023-11-04 20:21:20 +00:00