fix(139): honor use_large_thumbnail for family/personal/group clouds#9562
Merged
Merged
Conversation
The use_large_thumbnail toggle was only wired into the personal_new listing path; the family (家庭云), personal and group listings always used the small thumbnailURL and ignored the option. The 139 queryContentList APIs already return a bigthumbnailURL field alongside thumbnailURL, so parse it and select the large variant via a shared pickThumbnail helper when use_large_thumbnail is enabled, falling back to the regular thumbnail when no large URL is provided. Fixes AlistGo#9391
JoaHuang
approved these changes
Jun 24, 2026
skysliences
approved these changes
Jul 10, 2026
JoaHuang
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题 / Problem
139 移动云盘的「是否使用大缩略图」(
use_large_thumbnail) 开关仅在personal_new路径生效;家庭云(family)、个人云(personal)、群组(group)始终使用小图thumbnailURL,开关无效。对应 #9391。The
use_large_thumbnailtoggle only took effect on thepersonal_newpath; family/personal/group listings always used the smallthumbnailURL.改动 / Change
139 的 queryContentList 系列接口本身就返回
bigthumbnailURL字段(此前在结构体里被注释掉)。本 PR:Content/CloudContent的bigthumbnailURL;pickThumbnail辅助函数,在use_large_thumbnail开启且存在大图 URL 时使用大图,否则回退到小图(不存在大图时行为与现状一致,零回归);验证 / Verification
go build ./drivers/139/与go vet通过。Fixes #9391