mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[store] Make store use AllowNSFW option
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user