Skip to content

Commit ee39e6a

Browse files
ClearlyClaireGargron
authored andcommitted
Mark the 410 gone response for suspended accounts as cachable (mastodon#10339)
This will help a great deal with mastodon#9377 when a caching reverse proxy is configured.
1 parent 55c986d commit ee39e6a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/controllers/concerns/account_controller_concern.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def check_account_approval
6969
end
7070

7171
def check_account_suspension
72-
gone if @account.suspended?
72+
if @account.suspended?
73+
skip_session!
74+
expires_in(3.minutes, public: true)
75+
gone
76+
end
7377
end
7478
end

0 commit comments

Comments
 (0)