summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-07-29 20:59:19 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-09-14 18:59:34 -0400
commit4bb644e46e579c7d49306cbb0692521e3027264b (patch)
tree553113a1d5a49f515f5b09b4505c4e66c51e6f30 /src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
parent1d085df5b796e02b3e9e6874bd4e5684e840cb92 (diff)
downloadSMAPI-4bb644e46e579c7d49306cbb0692521e3027264b.tar.gz
SMAPI-4bb644e46e579c7d49306cbb0692521e3027264b.tar.bz2
SMAPI-4bb644e46e579c7d49306cbb0692521e3027264b.zip
prefer SPDX license ID in tracked license info (#651)
Diffstat (limited to 'src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs')
-rw-r--r--src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs b/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
index 0e254b39..e06a2497 100644
--- a/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
+++ b/src/SMAPI.Web/Framework/ModRepositories/GitHubRepository.cs
@@ -45,7 +45,7 @@ namespace StardewModdingAPI.Web.Framework.ModRepositories
return result.SetError(RemoteModStatus.DoesNotExist, "Found no GitHub repository for this ID.");
result
.SetBasicInfo(repository.FullName, $"{repository.WebUrl}/releases")
- .SetLicense(url: repository.License?.Url, name: repository.License?.Name);
+ .SetLicense(url: repository.License?.Url, name: repository.License?.SpdxId ?? repository.License?.Name);
// get latest release (whether preview or stable)
GitRelease latest = await this.Client.GetLatestReleaseAsync(id, includePrerelease: true);