Merge commit 'e8642389912b1059c921f0836825f12a0f2779db' into glitch-soc/merge-4.6

Conflicts:
- `app/models/account.rb`:
  Upstream changed the display name length limit for local users,
  but glitch-soc has a configurable limit.
  Updated the default limit to be upstream's new limit.
This commit is contained in:
Claire committed 2026-06-17 14:40:25 +02:00
commit 6b4e8c7467
173 files changed
+828 -755

No files matched your search

@@ -5,8 +5,9 @@ require 'action_dispatch/middleware/static'
module Mastodon
module Middleware
class PublicFileServer
CACHE_TTL = 28.days.to_i
SERVICE_WORKER_PATH = '/sw.js'
SERVICE_WORKER_TTL = 7.days.to_i
CACHE_TTL = 28.days.to_i
def initialize(app)
@app = app
@@ -24,7 +25,7 @@ module Mastodon
# Set cache headers on static files. Some paths require different cache headers
request = Rack::Request.new env
headers['cache-control'] = begin
if request.path.start_with?('/sw.js')
if request.path.start_with?(SERVICE_WORKER_PATH)
"public, max-age=#{SERVICE_WORKER_TTL}, must-revalidate"
elsif request.path.start_with?(paperclip_root_url)
"public, max-age=#{CACHE_TTL}, immutable"
+1 -1
View File
@@ -17,7 +17,7 @@ module Mastodon
end
def default_prerelease
'rc.2'
''
end
def prerelease