Skip to content

Commit

Permalink
add platform filter to getModVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Dec 20, 2024
1 parent fb85530 commit c6666a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/src/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ ServerRequest<ServerModVersion> server::getModVersion(std::string const& id, Mod
},
}, version);

return req.get(formatServerURL("/mods/{}/versions/{}?gd={}", id, versionURL, Loader::get()->getGameVersion())).map(
return req.get(formatServerURL("/mods/{}/versions/{}?gd={}&platforms={}", id, versionURL, Loader::get()->getGameVersion(), GEODE_PLATFORM_SHORT_IDENTIFIER)).map(
[](web::WebResponse* response) -> Result<ServerModVersion, ServerError> {
if (response->ok()) {
// Parse payload
Expand Down

0 comments on commit c6666a3

Please sign in to comment.