From 3045e8c860f358a1b4e18c19f6f1bb8666cd33c0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 16 Apr 2020 15:37:01 +0100 Subject: [PATCH] Reduce lower bound for maximum posts per minute --- inbox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inbox.py b/inbox.py index af961a8f7..2e3fc1313 100644 --- a/inbox.py +++ b/inbox.py @@ -2326,8 +2326,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, if quotasPerMin['domains'].get(postDomain): domainMaxPostsPerMin = \ int(domainMaxPostsPerDay / (24 * 60)) - if domainMaxPostsPerMin < 10: - domainMaxPostsPerMin = 10 + if domainMaxPostsPerMin < 5: + domainMaxPostsPerMin = 5 if quotasPerMin['domains'][postDomain] > \ domainMaxPostsPerMin: print('Queue: Quota per min - Maximum posts for ' + @@ -2367,8 +2367,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, if quotasPerMin['accounts'].get(postHandle): accountMaxPostsPerMin = \ int(accountMaxPostsPerDay / (24 * 60)) - if accountMaxPostsPerMin < 10: - accountMaxPostsPerMin = 10 + if accountMaxPostsPerMin < 5: + accountMaxPostsPerMin = 5 if quotasPerMin['accounts'][postHandle] > \ accountMaxPostsPerMin: print('Queue: Quota account posts per min -' +