add contact information to config

This commit is contained in:
2025-12-04 06:16:00 +03:00
parent 73af2dc3b9
commit c70f13d069
15 changed files with 90 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ from .constants import (
PermissionLevel, permission_level_string,
InfoboxKind, InfoboxHTMLClass,
REACTION_EMOJI, MOTD_BANNED_TAGS,
SIG_BANNED_TAGS,
SIG_BANNED_TAGS, STRICT_BANNED_TAGS,
)
from .lib.babycode import babycode_to_html, EMOJI, BABYCODE_VERSION
from datetime import datetime
@@ -149,6 +149,7 @@ def create_app():
from app.routes.api import bp as api_bp
from app.routes.posts import bp as posts_bp
from app.routes.hyperapi import bp as hyperapi_bp
from app.routes.guides import bp as guides_bp
app.register_blueprint(app_bp)
app.register_blueprint(topics_bp)
app.register_blueprint(threads_bp)
@@ -157,6 +158,7 @@ def create_app():
app.register_blueprint(api_bp)
app.register_blueprint(posts_bp)
app.register_blueprint(hyperapi_bp)
app.register_blueprint(guides_bp)
app.config['SESSION_COOKIE_SECURE'] = True
@@ -212,6 +214,10 @@ def create_app():
def babycode_filter(markup):
return babycode_to_html(markup).result
@app.template_filter('babycode_strict')
def babycode_strict_filter(markup):
return babycode_to_html(markup, STRICT_BANNED_TAGS).result
@app.template_filter('extract_h2')
def extract_h2(content):
import re