This commit is contained in:
2024-10-07 19:56:51 +03:30
parent 6b3aab913c
commit c70f1ca0cd
4 changed files with 9 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ namespace mstdnCats.Services
{
public static async Task<List<MediaAttachment>> checkAndInsertPostsAsync(IDocumentCollection<Post> _db, TelegramBotClient _bot, List<Post> fetchedPosts, ILogger<MastodonBot>? logger)
{
var config = new configData.config();
var config = configData.fetchData();
// Get existing posts
var existingPosts = _db.AsQueryable().Select(x => x.mstdnPostId).ToArray();