mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-04-21 00:30:23 +00:00
Make a simple mod to the download notification
This commit is contained in:
parent
25559284f1
commit
1dcba9a688
1 changed files with 3 additions and 1 deletions
|
@ -143,13 +143,15 @@ namespace Project_Unite.Controllers
|
||||||
model.Screenshot.SaveAs(mapped_dir);
|
model.Screenshot.SaveAs(mapped_dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string downloadIsStable = (download.IsStable) ? "Yes" : "No";
|
||||||
|
|
||||||
//Now we just save to the database...
|
//Now we just save to the database...
|
||||||
db.Downloads.Add(download);
|
db.Downloads.Add(download);
|
||||||
|
|
||||||
NotificationDaemon.ScreamToDiscord("New release: " + download.Name, $@"A new release of ShiftOS has been made!
|
NotificationDaemon.ScreamToDiscord("New release: " + download.Name, $@"A new release of ShiftOS has been made!
|
||||||
|
|
||||||
Release name: {download.Name}
|
Release name: {download.Name}
|
||||||
Stable: {download.IsStable}
|
Stable: {downloadIsStable}
|
||||||
Released on: {download.PostDate}", Url.Action("ViewRelease", "Downloads", new { id = download.Id }));
|
Released on: {download.PostDate}", Url.Action("ViewRelease", "Downloads", new { id = download.Id }));
|
||||||
|
|
||||||
db.SaveChanges();
|
db.SaveChanges();
|
||||||
|
|
Loading…
Add table
Reference in a new issue