fix(api): keep data.truncated on the account activity feed, deprecated

v1.43.6 shipped truncated as a required field of the activity
response's data, and moving it to meta alone would break a client
built against that in a patch release. data.truncated is back with the
same value as meta.truncated and is marked deprecated in the spec; the
web client keeps reading meta.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 11:00:25 +02:00
1 parent 2be262d574
commit 9a5c2b8ec1
4 files changed
+24 -4

No files matched your search

+4
View File
@@ -153,6 +153,10 @@ export const GET = apiHandler(async () => {
// The bound the view states out loud. Resolved here so the UI never has to
// hardcode a number the operator can change.
retentionDays,
// Deprecated copy of `meta.truncated`. It was a required field of `data`
// through v1.43.6, and a client built against that contract must keep
// decoding it; it goes in a minor release. The web reads `meta`.
truncated: cap.truncated,
},
// Whether the list is everything inside that window, or its most recent
// hundred rows, rides the envelope like every capped list's (`meta`).