summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/ModRepositories
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-06-06 00:16:39 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-06-06 00:16:39 -0400
commit53a6833ab22fb41e909ed8ef50aa9262735818d9 (patch)
treebe9efb2fe0e33938b5cec8b10704bb54c83c0877 /src/SMAPI.Web/Framework/ModRepositories
parentaee42562698ad3e84f781d51e8aa5017a1a589bc (diff)
downloadSMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.tar.gz
SMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.tar.bz2
SMAPI-53a6833ab22fb41e909ed8ef50aa9262735818d9.zip
return file versions from Nexus in web API (#532)
Diffstat (limited to 'src/SMAPI.Web/Framework/ModRepositories')
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
index 6cac6b8f..4afcda10 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/NexusRepository.cs
@@ -43,7 +43,7 @@ namespace StardewModdingAPI.Web.Framework.ModRepositories
return new ModInfoModel("Found no mod with this ID.");
if (mod.Error != null)
return new ModInfoModel(mod.Error);
- return new ModInfoModel(name: mod.Name, version: this.NormaliseVersion(mod.Version), url: mod.Url);
+ return new ModInfoModel(name: mod.Name, version: this.NormaliseVersion(mod.Version), previewVersion: mod.LatestFileVersion?.ToString(), url: mod.Url);
}
catch (Exception ex)
{