fix: don't always ask for the changelog from modrinth

- per https://discordapp.com/channels/734077874708938864/974050507150729236/1461487847142985982

  `/project/<id>/version` now has an `include_changelog` query param
  which can be set to false to save oodles of bandwidth

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2026-03-16 14:57:35 -07:00
parent 98c3129424
commit e16235c1ca
No known key found for this signature in database
GPG key ID: B4CB507E51F8B89C
4 changed files with 24 additions and 14 deletions

View file

@ -180,7 +180,9 @@ Task::Ptr GetModDependenciesTask::prepareDependencyTask(const ModPlatform::Depen
tasks->addTask(getProjectInfoTask(pDep));
}
ResourceAPI::DependencySearchArgs args = { dep, m_version, m_loaderType };
ResourceAPI::DependencySearchArgs args = {
.dependency = dep, .mcVersion = m_version, .loader = m_loaderType, .includeChangelog = true
};
ResourceAPI::Callback<ModPlatform::IndexedVersion> callbacks;
callbacks.on_fail = [](QString reason, int) {
qCritical() << tr("A network error occurred. Could not load project dependencies:%1").arg(reason);