Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove time check in isFairUseOfFreePushService
What the TODO say, the dev does.

Signed-off-by: Louis <[email protected]>
  • Loading branch information
artonge authored Aug 16, 2022
commit dc5cdfb7e3291d79735daf7cacae1988d3c5f1c6
5 changes: 1 addition & 4 deletions lib/private/Notification/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,7 @@ public function isFairUseOfFreePushService(): bool {
* users overload our infrastructure. For this reason we have to rate-limit the
* use of push notifications. If you need this feature, consider using Nextcloud Enterprise.
*/
// TODO Remove time check after 1st March 2022
$isFairUse = $this->timeFactory->getTime() < 1646089200
|| $this->subscription->delegateHasValidSubscription()
|| $this->userManager->countSeenUsers() < 5000;
$isFairUse = $this->subscription->delegateHasValidSubscription() || $this->userManager->countSeenUsers() < 5000;
$pushAllowed = $isFairUse ? 'yes' : 'no';
$this->cache->set('push_fair_use', $pushAllowed, 3600);
}
Expand Down