This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Mark the 410 gone response for suspended accounts as cachable (
#10339
)
This will help a great deal with
#9377
when a caching reverse proxy is configured.
master
ThibG
5 years ago
committed by
Eugen Rochko
parent
62dd0b7f9c
commit
2361917944
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
app/controllers/concerns/account_controller_concern.rb
+ 5
- 1
app/controllers/concerns/account_controller_concern.rb
View File
@ -69,6 +69,10 @@ module AccountControllerConcern
end
def
check_account_suspension
gone
if
@account
.
suspended?
if
@account
.
suspended?
skip_session!
expires_in
(
3
.
minutes
,
public
:
true
)
gone
end
end
end
Write
Preview
Loading…
Cancel
Save