diff --git a/ProjectLighthouse/Controllers/ClientConfigurationController.cs b/ProjectLighthouse/Controllers/ClientConfigurationController.cs
index c735cfa0..8d700e0e 100644
--- a/ProjectLighthouse/Controllers/ClientConfigurationController.cs
+++ b/ProjectLighthouse/Controllers/ClientConfigurationController.cs
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Mvc;
-using ProjectLighthouse.Serialization;
using ProjectLighthouse.Types;
namespace ProjectLighthouse.Controllers {
@@ -14,7 +13,7 @@ namespace ProjectLighthouse.Controllers {
[HttpGet("t_conf")]
[Produces("text/json")]
- public IActionResult TConf() {
+ public IActionResult Conf() {
return this.Ok("[{\"StatusCode\":200}]");
}
@@ -27,8 +26,8 @@ namespace ProjectLighthouse.Controllers {
[Produces("text/xml")]
public IActionResult PrivacySettings() {
PrivacySettings ps = new() {
- LevelVisibility = "unset",
- ProfileVisibility = "unset"
+ LevelVisibility = "all",
+ ProfileVisibility = "all"
};
return this.Ok(ps.Serialize());
diff --git a/ProjectLighthouse/Controllers/CommentController.cs b/ProjectLighthouse/Controllers/CommentController.cs
index 8698fcb4..c1df2206 100644
--- a/ProjectLighthouse/Controllers/CommentController.cs
+++ b/ProjectLighthouse/Controllers/CommentController.cs
@@ -1,4 +1,3 @@
-using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
diff --git a/ProjectLighthouse/Controllers/LoginController.cs b/ProjectLighthouse/Controllers/LoginController.cs
index d5cae68f..b6fb596a 100644
--- a/ProjectLighthouse/Controllers/LoginController.cs
+++ b/ProjectLighthouse/Controllers/LoginController.cs
@@ -1,4 +1,3 @@
-using System;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using ProjectLighthouse.Types;
@@ -11,9 +10,9 @@ namespace ProjectLighthouse.Controllers {
[HttpGet]
[HttpPost]
public IActionResult Post() {
- if(!this.Request.Query.TryGetValue("titleID", out StringValues titleValues)) {
+ if(!this.Request.Query.TryGetValue("titleID", out StringValues _)) {
this.BadRequest();
- };
+ }
// string titleId = titleValues[0];
diff --git a/ProjectLighthouse/Controllers/MessageController.cs b/ProjectLighthouse/Controllers/MessageController.cs
index 7e77a377..5a8ab309 100644
--- a/ProjectLighthouse/Controllers/MessageController.cs
+++ b/ProjectLighthouse/Controllers/MessageController.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
diff --git a/ProjectLighthouse/Controllers/PublishController.cs b/ProjectLighthouse/Controllers/PublishController.cs
index 5f6b7849..a1963e0b 100644
--- a/ProjectLighthouse/Controllers/PublishController.cs
+++ b/ProjectLighthouse/Controllers/PublishController.cs
@@ -1,6 +1,4 @@
-using System;
using System.IO;
-using System.Linq;
using System.Threading.Tasks;
using System.Xml.Serialization;
using Microsoft.AspNetCore.Mvc;
diff --git a/ProjectLighthouse/Controllers/SlotsController.cs b/ProjectLighthouse/Controllers/SlotsController.cs
index 02ba40a8..d0d0da48 100644
--- a/ProjectLighthouse/Controllers/SlotsController.cs
+++ b/ProjectLighthouse/Controllers/SlotsController.cs
@@ -1,4 +1,3 @@
-using System;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
@@ -34,7 +33,7 @@ namespace ProjectLighthouse.Controllers {
[HttpPost("showModerated")]
public IActionResult ShowModerated() {
- return this.Ok("");
+ return this.Ok(LbpSerializer.BlankElement("resources"));
}
}
}
\ No newline at end of file
diff --git a/ProjectLighthouse/Database.cs b/ProjectLighthouse/Database.cs
index 5e4396ca..204e5e24 100644
--- a/ProjectLighthouse/Database.cs
+++ b/ProjectLighthouse/Database.cs
@@ -1,4 +1,3 @@
-using System;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using ProjectLighthouse.Types;
diff --git a/ProjectLighthouse/Program.cs b/ProjectLighthouse/Program.cs
index 3da6c5f2..d79c24ac 100644
--- a/ProjectLighthouse/Program.cs
+++ b/ProjectLighthouse/Program.cs
@@ -1,11 +1,6 @@
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
using ProjectLighthouse.Types;
namespace ProjectLighthouse {
diff --git a/ProjectLighthouse/Serialization/LbpSerializer.cs b/ProjectLighthouse/Serialization/LbpSerializer.cs
index 9633ea1f..8ebbd79d 100644
--- a/ProjectLighthouse/Serialization/LbpSerializer.cs
+++ b/ProjectLighthouse/Serialization/LbpSerializer.cs
@@ -1,7 +1,5 @@
-using System;
using System.Collections.Generic;
using System.Linq;
-using System.Reflection;
namespace ProjectLighthouse.Serialization {
///
diff --git a/ProjectLighthouse/Startup.cs b/ProjectLighthouse/Startup.cs
index aadc22ee..89f938aa 100644
--- a/ProjectLighthouse/Startup.cs
+++ b/ProjectLighthouse/Startup.cs
@@ -1,18 +1,11 @@
using System;
-using System.Collections.Generic;
using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.HttpsPolicy;
-using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-using Microsoft.OpenApi.Models;
using ProjectLighthouse.Serialization;
namespace ProjectLighthouse {
diff --git a/ProjectLighthouse/Types/ServerSettings.cs b/ProjectLighthouse/Types/ServerSettings.cs
index f1b9cbb4..da9d423d 100644
--- a/ProjectLighthouse/Types/ServerSettings.cs
+++ b/ProjectLighthouse/Types/ServerSettings.cs
@@ -15,7 +15,7 @@ namespace ProjectLighthouse.Types {
get {
if(dbConnectionString == null) {
return dbConnectionString = Environment.GetEnvironmentVariable("LIGHTHOUSE_DB_CONNECTION_STRING") ?? "";
- };
+ }
return dbConnectionString;
}
}