Now not accepting posts from bot accounts - improved error handling

This commit is contained in:
2024-11-07 00:12:10 +03:30
parent 79deb67848
commit 972167634f
3 changed files with 14 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ namespace mstdnCats.Services
foreach (Post post in fetchedPosts)
{
// Check if post already exists
if (!existingPosts.Contains(post.mstdnPostId) && post.MediaAttachments.Count > 0)
if (!existingPosts.Contains(post.mstdnPostId) && post.MediaAttachments.Count > 0 && post.Account.IsBot == false)
{
// Send approve or reject message to admin