backword compatiblity for media urls
This commit is contained in:
parent
c8bafefc55
commit
3bef7df45d
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
</fieldset>
|
||||
{% if request.user.mastodon_acct %}
|
||||
<fieldset>
|
||||
转发到 @{{ request.user.mastodon_acct }} 时间轴时:
|
||||
转发到<em data-tooltip="@{{ request.user.mastodon_acct }}">主ID</em>时间轴时:
|
||||
<input type="radio"
|
||||
name="mastodon_repost_mode"
|
||||
value="0"
|
||||
|
@ -119,7 +119,7 @@
|
|||
</fieldset>
|
||||
<fieldset>
|
||||
<label>
|
||||
发表时默认选中转发到 @{{ request.user.mastodon_acct }} 时间轴
|
||||
发表时默认选中 转发到<em data-tooltip="@{{ request.user.mastodon_acct }}">主ID</em>时间轴
|
||||
<input type="checkbox"
|
||||
name="mastodon_default_repost"
|
||||
value="1"
|
||||
|
|
Loading…
Add table
Reference in a new issue