From d66290269d4709fe2d909284801f31669aa26f74 Mon Sep 17 00:00:00 2001 From: vnugent Date: Thu, 31 Aug 2023 22:17:50 -0400 Subject: pre tag updates --- back-end/src/Endpoints/ChannelEndpoint.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'back-end/src/Endpoints/ChannelEndpoint.cs') diff --git a/back-end/src/Endpoints/ChannelEndpoint.cs b/back-end/src/Endpoints/ChannelEndpoint.cs index c63d093..d51ad3a 100644 --- a/back-end/src/Endpoints/ChannelEndpoint.cs +++ b/back-end/src/Endpoints/ChannelEndpoint.cs @@ -45,6 +45,7 @@ namespace Content.Publishing.Blog.Admin.Endpoints private static readonly IValidator FeedValidator = FeedMeta.GetValidator(); private readonly IChannelContextManager ContentManager; + private readonly PostManager PostManager; public ChannelEndpoint(PluginBase plugin, IConfigScope config) @@ -54,6 +55,7 @@ namespace Content.Publishing.Blog.Admin.Endpoints InitPathAndLog(path, plugin.Log); ContentManager = plugin.GetOrCreateSingleton(); + PostManager = plugin.GetOrCreateSingleton(); } protected override async ValueTask GetAsync(HttpEntity entity) @@ -172,6 +174,9 @@ namespace Content.Publishing.Blog.Admin.Endpoints return VfReturnType.VirtualSkip; } + //Update post feeds + await PostManager.UpdateFeedForChannelAsync(channel, entity.EventCancellation); + //Return the new blog context to the client entity.CloseResponse(HttpStatusCode.Created); return VfReturnType.VirtualSkip; -- cgit