diff options
| author | Fuwn <[email protected]> | 2026-04-18 09:01:52 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-18 09:01:52 +0000 |
| commit | f5fef7b623639399e81b284f56f9e85454cc76c2 (patch) | |
| tree | 2ddcfff1256d1a2ff9711349fa1296e275892bf8 /static | |
| parent | fix(user): pass actual description to badge preview alt text (diff) | |
| download | due.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 'static')
0 files changed, 0 insertions, 0 deletions