aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-04-18 09:01:52 +0000
committerFuwn <[email protected]>2026-04-18 09:01:52 +0000
commitf5fef7b623639399e81b284f56f9e85454cc76c2 (patch)
tree2ddcfff1256d1a2ff9711349fa1296e275892bf8 /src/routes/api
parentfix(user): pass actual description to badge preview alt text (diff)
downloaddue.moe-f5fef7b623639399e81b284f56f9e85454cc76c2.tar.xz
due.moe-f5fef7b623639399e81b284f56f9e85454cc76c2.zip
fix(media): guard publicMediaListCollection against missing AniList data
The public variant of mediaListCollection chained data.MediaListCollection .lists with no null check, so any AniList error response (rate limit, private list, nonexistent user) threw a TypeError. Mirror the guard used by the authenticated sibling: if any of data, MediaListCollection, or lists is missing, return an empty array. The function currently has no in-tree callers; noting that it may be a candidate for removal in a follow-up.
Diffstat (limited to 'src/routes/api')
0 files changed, 0 insertions, 0 deletions