diff --git a/files/helpers/jinja2.py b/files/helpers/jinja2.py index d146c4e64..d1b5e0aab 100644 --- a/files/helpers/jinja2.py +++ b/files/helpers/jinja2.py @@ -58,4 +58,4 @@ def inject_constants(): "LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK, "DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION, "has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app, - "FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": ONLINE_STR, "patron": patron} + "FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": ONLINE_STR, "patron": patron, "approved_embed_hosts": approved_embed_hosts} diff --git a/files/templates/formatting.html b/files/templates/formatting.html index df0ba7ae9..bfbf99e92 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -67,7 +67,7 @@ Text 2 {{SITE_NAME}} - Images + Images (will embed automatically if from approved hosts) https://i.imgur.com/SwVuagI_d.webp example image @@ -637,6 +637,24 @@ line breaks + +
Approved Image Hosts
+ +
+ + + + + + + {% for host in approved_embed_hosts %} + + + + {% endfor %} + +
Host
{{host}}
+ {% include "expanded_image_modal.html" %} {% endblock %} \ No newline at end of file