[store] Make store use AllowNSFW option

This commit is contained in:
Andriy
2023-07-21 18:40:24 +03:00
parent 613ac5ae22
commit 4893c1240d
11 changed files with 47 additions and 46 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
using Kruzya.TelegramBot.Core;
using Kruzya.TelegramBot.Core.Extensions;
using Kruzya.TelegramBot.Core.Options;
using Microsoft.Extensions.DependencyInjection;
using West.TelegramBot.ContentStore.Option;
@@ -24,7 +25,7 @@ public class ContentStore : Module
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IOption, AllowNsfw>();
services.AddOption<AllowNsfw>();
foreach (var serviceType in MediaServiceTypes)
{