summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/ViewModels
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-08 13:44:49 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-11-08 13:44:49 -0500
commit0aac0717bf1c46d798ed007d3c7c5c050e07f354 (patch)
tree7543099b0ad1a0fb932c69718cfd4d06b8729850 /src/SMAPI.Web/ViewModels
parent8b09a2776d9c0faf96fa90c923952033ce659477 (diff)
downloadSMAPI-0aac0717bf1c46d798ed007d3c7c5c050e07f354.tar.gz
SMAPI-0aac0717bf1c46d798ed007d3c7c5c050e07f354.tar.bz2
SMAPI-0aac0717bf1c46d798ed007d3c7c5c050e07f354.zip
add CurseForge to mod metadata (#605)
Diffstat (limited to 'src/SMAPI.Web/ViewModels')
-rw-r--r--src/SMAPI.Web/ViewModels/ModModel.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/SMAPI.Web/ViewModels/ModModel.cs b/src/SMAPI.Web/ViewModels/ModModel.cs
index 5a343640..2b478c81 100644
--- a/src/SMAPI.Web/ViewModels/ModModel.cs
+++ b/src/SMAPI.Web/ViewModels/ModModel.cs
@@ -100,15 +100,20 @@ namespace StardewModdingAPI.Web.ViewModels
anyFound = true;
yield return new ModLinkModel($"https://www.nexusmods.com/stardewvalley/mods/{entry.NexusID}", "Nexus");
}
- if (entry.ChucklefishID.HasValue)
+ if (entry.ModDropID.HasValue)
{
anyFound = true;
- yield return new ModLinkModel($"https://community.playstarbound.com/resources/{entry.ChucklefishID}", "Chucklefish");
+ yield return new ModLinkModel($"https://www.moddrop.com/sdv/mod/{entry.ModDropID}", "ModDrop");
}
- if (entry.ModDropID.HasValue)
+ if (!string.IsNullOrWhiteSpace(entry.CurseForgeKey))
{
anyFound = true;
- yield return new ModLinkModel($"https://www.moddrop.com/sdv/mod/{entry.ModDropID}", "ModDrop");
+ yield return new ModLinkModel($"https://www.curseforge.com/stardewvalley/mods/{entry.CurseForgeKey}", "CurseForge");
+ }
+ if (entry.ChucklefishID.HasValue)
+ {
+ anyFound = true;
+ yield return new ModLinkModel($"https://community.playstarbound.com/resources/{entry.ChucklefishID}", "Chucklefish");
}
// fallback