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

editor/server: set meta description from page

This commit is contained in:
Anthony Donlon
2025-12-19 01:10:13 +08:00
parent a50b0289a0
commit 7229ad7281
2 changed files with 14 additions and 8 deletions

View File

@@ -2,7 +2,10 @@
import random
import string
from typing import cast
from cloudflare_error_page import ErrorPageParams
from flask import (
Blueprint,
current_app,
@@ -85,7 +88,7 @@ def get(name: str):
})
else:
return abort(404)
params: dict = item.params
params = cast(ErrorPageParams, item.params)
params.pop('time', None)
params.pop('ray_id', None)
params.pop('client_ip', None)