diff --git a/Iceshrimp.Backend/Core/Queues/PreDeliverQueue.cs b/Iceshrimp.Backend/Core/Queues/PreDeliverQueue.cs index 1fcea7dd..4c28996b 100644 --- a/Iceshrimp.Backend/Core/Queues/PreDeliverQueue.cs +++ b/Iceshrimp.Backend/Core/Queues/PreDeliverQueue.cs @@ -140,12 +140,13 @@ file static class QueryableExtensions this IQueryable query, ASActivity activity, DatabaseContext db ) { - if (activity is ASFollow) return query; - return query.Where(user => !db.Instances.Any(p => p.Host == user.Host && - ((p.IsNotResponding && - p.LastCommunicatedAt < - DateTime.UtcNow - TimeSpan.FromDays(7)) || - p.IsSuspended))); + return activity is ASFollow + ? query.Where(user => !db.Instances.Any(p => p.Host == user.Host && p.IsSuspended)) + : query.Where(user => !db.Instances.Any(p => p.Host == user.Host && + ((p.IsNotResponding && + p.LastCommunicatedAt < + DateTime.UtcNow - TimeSpan.FromDays(7)) || + p.IsSuspended))); } public static IQueryable SkipBlockedInstances(