9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

template: use creator_info to render 'created with' label

This commit is contained in:
Anthony Donlon
2025-11-20 21:42:46 +08:00
parent 87c009f7b4
commit 57f730dc23
3 changed files with 11 additions and 6 deletions

View File

@@ -68,5 +68,9 @@ def get(name: str):
params.pop('time')
params.pop('ray_id')
params.pop('client_ip')
# TODO: cache
return render_cf_error_page(params=params, allow_html=False, use_cdn=True, show_creator=True), 200
params['creator_info'] = {
'hidden': False,
'text': 'CF Error Page Editor',
'link': f'https://virt.moe/cloudflare-error-page/editor/?from={name}',
}
return render_cf_error_page(params=params, allow_html=False, use_cdn=True), 200