diff --git a/src/Moonglade.Pingback/PingbackSender.cs b/src/Moonglade.Pingback/PingbackSender.cs index 7eec94e1a..2c993086e 100644 --- a/src/Moonglade.Pingback/PingbackSender.cs +++ b/src/Moonglade.Pingback/PingbackSender.cs @@ -1,12 +1,10 @@ -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging; using Moonglade.Utils; namespace Moonglade.Pingback; public class PingbackSender(HttpClient httpClient, IPingbackRequestor requestor, - IConfiguration configuration, ILogger logger) : IPingbackSender { diff --git a/src/Moonglade.Web/Controllers/ImageController.cs b/src/Moonglade.Web/Controllers/ImageController.cs index 4aee53446..9d0d9877c 100644 --- a/src/Moonglade.Web/Controllers/ImageController.cs +++ b/src/Moonglade.Web/Controllers/ImageController.cs @@ -13,7 +13,6 @@ public class ImageController(IBlogImageStorage imageStorage, IBlogConfig blogConfig, IMemoryCache cache, IFileNameGenerator fileNameGen, - IConfiguration configuration, IOptions imageStorageSettings, CannonService cannonService) : ControllerBase diff --git a/src/Moonglade.Webmention/WebmentionResponse.cs b/src/Moonglade.Webmention/WebmentionResponse.cs index bb98a3f5c..eb9ec9a8a 100644 --- a/src/Moonglade.Webmention/WebmentionResponse.cs +++ b/src/Moonglade.Webmention/WebmentionResponse.cs @@ -2,9 +2,9 @@ namespace Moonglade.Webmention; -public class WebmentionResponse(WebmentionStatus Status) +public class WebmentionResponse(WebmentionStatus status) { - public WebmentionStatus Status { get; set; } + public WebmentionStatus Status { get; set; } = status; public MentionEntity MentionEntity { get; set; } public static WebmentionResponse GenericError => new(WebmentionStatus.GenericError);