diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-21 11:56:19 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-12-21 11:56:19 -0500 |
commit | 02f645900eb31648376abe21df30dd956221ad90 (patch) | |
tree | 2e80f56ec0995398200365fa263bc44655f1eea0 /src/SMAPI.Web/Controllers | |
parent | 9dc6054479da664ea82ec366215ba79c36bfca2c (diff) | |
download | SMAPI-02f645900eb31648376abe21df30dd956221ad90.tar.gz SMAPI-02f645900eb31648376abe21df30dd956221ad90.tar.bz2 SMAPI-02f645900eb31648376abe21df30dd956221ad90.zip |
add option to disable uploading new files to Pastebin
Diffstat (limited to 'src/SMAPI.Web/Controllers')
-rw-r--r-- | src/SMAPI.Web/Controllers/JsonValidatorController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Controllers/JsonValidatorController.cs b/src/SMAPI.Web/Controllers/JsonValidatorController.cs index e4eff0f4..c4bfff3b 100644 --- a/src/SMAPI.Web/Controllers/JsonValidatorController.cs +++ b/src/SMAPI.Web/Controllers/JsonValidatorController.cs @@ -141,7 +141,7 @@ namespace StardewModdingAPI.Web.Controllers return this.View("Index", this.GetModel(null, schemaName).SetUploadError("The JSON file seems to be empty.")); // upload file - var result = await this.Storage.SaveAsync(title: $"JSON validator {DateTime.UtcNow:s}", content: input, compress: true); + UploadResult result = await this.Storage.SaveAsync(title: $"JSON validator {DateTime.UtcNow:s}", content: input, compress: true); if (!result.Succeeded) return this.View("Index", this.GetModel(result.ID, schemaName).SetUploadError(result.UploadError)); |