diff --git a/misc/nginx.conf.d/neodb-dev.conf b/misc/nginx.conf.d/neodb-dev.conf index 726ae84a..28f29bd2 100644 --- a/misc/nginx.conf.d/neodb-dev.conf +++ b/misc/nginx.conf.d/neodb-dev.conf @@ -32,6 +32,10 @@ server { alias /www/m/; add_header Cache-Control "public, max-age=604800, immutable"; } + # backwards compatibility with versions before 2023.11 + location ~* ^/media/(album|book|game|item|movie)/(.+)$ { + return 302 https://$host/m/$1/$2; + } # Proxies media and remote media with caching location ~* ^/(media|proxy) { # Cache media and proxied resources diff --git a/misc/nginx.conf.d/neodb.conf b/misc/nginx.conf.d/neodb.conf index 4273b242..c52b4be2 100644 --- a/misc/nginx.conf.d/neodb.conf +++ b/misc/nginx.conf.d/neodb.conf @@ -40,6 +40,10 @@ server { alias /www/m/; add_header Cache-Control "public, max-age=604800, immutable"; } + # backwards compatibility with versions before 2023.11 + location ~* ^/media/(album|book|game|item|movie)/(.+)$ { + return 302 https://$host/m/$1/$2; + } # Proxies media and remote media with caching location ~* ^/(media|proxy) { # Cache media and proxied resources diff --git a/users/templates/users/preferences.html b/users/templates/users/preferences.html index e5529231..d631a5dc 100644 --- a/users/templates/users/preferences.html +++ b/users/templates/users/preferences.html @@ -98,7 +98,7 @@ {% if request.user.mastodon_acct %}