summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-31 08:21:08 -0400
committerMichael <[email protected]>2017-05-31 08:21:08 -0400
commit1dcba9a68839ac0eac372030b20d9c0c8f2f8e0e (patch)
tree6458aa26d2a7546858051c3a07a99bd2df3cd953
parent25559284f1aacd6379ec6d8fed061627edf915e3 (diff)
downloadproject-unite-1dcba9a68839ac0eac372030b20d9c0c8f2f8e0e.tar.gz
project-unite-1dcba9a68839ac0eac372030b20d9c0c8f2f8e0e.tar.bz2
project-unite-1dcba9a68839ac0eac372030b20d9c0c8f2f8e0e.zip
Make a simple mod to the download notification
-rw-r--r--Project-Unite/Controllers/DeveloperController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/DeveloperController.cs b/Project-Unite/Controllers/DeveloperController.cs
index 16c7799..ab2d729 100644
--- a/Project-Unite/Controllers/DeveloperController.cs
+++ b/Project-Unite/Controllers/DeveloperController.cs
@@ -143,13 +143,15 @@ namespace Project_Unite.Controllers
model.Screenshot.SaveAs(mapped_dir);
}
+ string downloadIsStable = (download.IsStable) ? "Yes" : "No";
+
//Now we just save to the database...
db.Downloads.Add(download);
NotificationDaemon.ScreamToDiscord("New release: " + download.Name, $@"A new release of ShiftOS has been made!
Release name: {download.Name}
-Stable: {download.IsStable}
+Stable: {downloadIsStable}
Released on: {download.PostDate}", Url.Action("ViewRelease", "Downloads", new { id = download.Id }));
db.SaveChanges();