Skip to content

Commit e778d22

Browse files
authored
Modrinth 默认不获取更新日志 (#5250)
1 parent db5aa0c commit e778d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HMCLCore/src/main/java/org/jackhuang/hmcl/mod/modrinth/ModrinthRemoteModRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public Stream<RemoteMod.Version> getRemoteVersionsById(String id) throws IOExcep
164164
SEMAPHORE.acquireUninterruptibly();
165165
try {
166166
id = StringUtils.removePrefix(id, "local-");
167-
List<ProjectVersion> versions = HttpRequest.GET(PREFIX + "/v2/project/" + id + "/version")
167+
List<ProjectVersion> versions = HttpRequest.GET(PREFIX + "/v2/project/" + id + "/version?include_changelog=false")
168168
.getJson(listTypeOf(ProjectVersion.class));
169169
return versions.stream().map(ProjectVersion::toVersion).flatMap(Lang::toStream);
170170
} finally {

0 commit comments

Comments
 (0)