Add 1GB storage cap with staff bypass (#2729)

Re-applies the storage limit from #2713 (reverted in #2715) with an
exception for staff identities so our own account isn't blocked.
This commit is contained in:
Jorge Manrubia
2026-03-19 12:38:39 +01:00
committed by GitHub
parent 11df9c3589
commit cf10dbd91e
22 changed files with 374 additions and 2 deletions
+4
View File
@@ -133,10 +133,14 @@ module Fizzy
end
config.to_prepare do
::Account.include Account::StorageLimited
::Identity.include Authorization::Identity, Identity::Devices
::Session.include Session::Devices
::Signup.prepend Signup
ApplicationController.include Authorization::Controller
CardsController.include(Card::StorageLimited::Creation)
Cards::CommentsController.include(Card::StorageLimited::Commenting)
Cards::PublishesController.include(Card::StorageLimited::Publishing)
Notification.register_push_target(:native)