diff --git a/files/routes/comments.py b/files/routes/comments.py index 2460ace2e7..533edff1ab 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -208,8 +208,8 @@ def api_comment(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') body_html = sanitize(CustomRenderer().render(mistletoe.Document(body))) @@ -630,8 +630,8 @@ def edit_comment(cid, v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if not c.options: for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body): diff --git a/files/routes/posts.py b/files/routes/posts.py index 65c27b838b..eccdaf8e43 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -431,8 +431,8 @@ def edit_post(pid, v): if title != p.title: if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): title = title.replace(k, l) - title = title.replace(' I ', f' @{v.username} ') - title = censor_slurs2(title).upper().replace(' ME ', f' @{v.username} ') + title = title.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + title = censor_slurs2(title).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') title_html = filter_emojis_only(title) if v.marseyawarded and len(list(re.finditer('>[^<\s+]|[^>\s+]<', title_html))) > 0: return {"error":"You can only type marseys!"}, 403 @@ -459,8 +459,8 @@ def edit_post(pid, v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if not p.options.count(): for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body): @@ -729,8 +729,8 @@ def submit_post(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): title = title.replace(k, l) - title = title.replace(' I ', f' @{v.username} ') - title = censor_slurs2(title).upper().replace(' ME ', f' @{v.username} ') + title = title.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + title = censor_slurs2(title).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') title_html = filter_emojis_only(title) body = request.values.get("body", "").strip() @@ -928,8 +928,8 @@ def submit_post(v): if v.agendaposter and not v.marseyawarded: for k, l in AJ_REPLACEMENTS.items(): body = body.replace(k, l) - body = body.replace(' I ', f' @{v.username} ') - body = censor_slurs2(body).upper().replace(' ME ', f' @{v.username} ') + body = body.replace(' I ', f' @{v.username} ').replace(' i ', f' @{v.username} ') + body = censor_slurs2(body).replace(' ME ', f' @{v.username} ').replace(' me ', f' @{v.username} ') if request.files.get("file2") and request.headers.get("cf-ipcountry") != "T1": file=request.files["file2"] diff --git a/files/static/dist/main.css b/files/static/dist/main.css index c291f31120..0d3053d270 100644 --- a/files/static/dist/main.css +++ b/files/static/dist/main.css @@ -4076,3 +4076,6 @@ video { width: 20%; } } +.agendaposter { + text-transform: uppercase !important; +} \ No newline at end of file diff --git a/files/static/src/main.css b/files/static/src/main.css index 8d1f5dd6e2..7efbffb837 100644 --- a/files/static/src/main.css +++ b/files/static/src/main.css @@ -473,3 +473,7 @@ max-width: 100%; @apply inline-block object-contain } + +.agendaposter { + text-transform: uppercase !important; +} \ No newline at end of file diff --git a/files/templates/CHRISTMAS/authforms.html b/files/templates/CHRISTMAS/authforms.html index 87afd6826d..dbd52310dd 100644 --- a/files/templates/CHRISTMAS/authforms.html +++ b/files/templates/CHRISTMAS/authforms.html @@ -14,11 +14,11 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/CHRISTMAS/comments.html b/files/templates/CHRISTMAS/comments.html index c58b1ca68e..22f69cff4d 100644 --- a/files/templates/CHRISTMAS/comments.html +++ b/files/templates/CHRISTMAS/comments.html @@ -318,7 +318,7 @@
Removed by @{{c.ban_reason}}
{% endif %} -
+
{{c.realbody(v) | safe}} {% if c.options %} {% for o in c.options %} diff --git a/files/templates/CHRISTMAS/home.html b/files/templates/CHRISTMAS/home.html index f7450567fc..f70ba00d1e 100644 --- a/files/templates/CHRISTMAS/home.html +++ b/files/templates/CHRISTMAS/home.html @@ -64,10 +64,6 @@ {% if v %} {% include "CHRISTMAS/award_modal.html" %} {% endif %} - - {% if v.agendaposter %} - - {% endif %} {% endblock %} {% block scripts %} diff --git a/files/templates/CHRISTMAS/login.html b/files/templates/CHRISTMAS/login.html index 906f12e75f..0ecc952843 100644 --- a/files/templates/CHRISTMAS/login.html +++ b/files/templates/CHRISTMAS/login.html @@ -13,9 +13,9 @@ Login - {{'SITE_NAME' | app_config}} {% endblock %} - + - + diff --git a/files/templates/CHRISTMAS/login_2fa.html b/files/templates/CHRISTMAS/login_2fa.html index 726cde2555..2170c86fea 100644 --- a/files/templates/CHRISTMAS/login_2fa.html +++ b/files/templates/CHRISTMAS/login_2fa.html @@ -13,7 +13,7 @@ 2-Step Login - {{'SITE_NAME' | app_config}} - + diff --git a/files/templates/CHRISTMAS/sign_up.html b/files/templates/CHRISTMAS/sign_up.html index 2b68e9d5e1..7fe31abdbb 100644 --- a/files/templates/CHRISTMAS/sign_up.html +++ b/files/templates/CHRISTMAS/sign_up.html @@ -26,9 +26,9 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}Sign up - {{'SITE_NAME' | app_config}}{% endif %} - + - + diff --git a/files/templates/CHRISTMAS/sign_up_failed_ref.html b/files/templates/CHRISTMAS/sign_up_failed_ref.html index 417ace7140..5e5e72b664 100644 --- a/files/templates/CHRISTMAS/sign_up_failed_ref.html +++ b/files/templates/CHRISTMAS/sign_up_failed_ref.html @@ -31,7 +31,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}{{'SITE_NAME' | app_config}}{% endif %} - + diff --git a/files/templates/CHRISTMAS/submission.html b/files/templates/CHRISTMAS/submission.html index 46a0c7f58c..815b84f692 100644 --- a/files/templates/CHRISTMAS/submission.html +++ b/files/templates/CHRISTMAS/submission.html @@ -368,7 +368,7 @@
-

+

{% if p.realurl(v) %} {{p.realtitle(v) | safe}} @@ -379,7 +379,7 @@

-
+
{% if p.realurl(v) %} {% if "streamable.com/" in p.realurl(v) %}
diff --git a/files/templates/CHRISTMAS/submission_listing.html b/files/templates/CHRISTMAS/submission_listing.html index c23cad1106..d9ad4dfb31 100644 --- a/files/templates/CHRISTMAS/submission_listing.html +++ b/files/templates/CHRISTMAS/submission_listing.html @@ -242,13 +242,13 @@
- + {{p.realtitle(v) | safe}}
{% if p.realbody(v) and not p.over_18 %} -
+
{{p.realbody(v) | safe}}
{% endif %} diff --git a/files/templates/CHRISTMAS/tailwind.html b/files/templates/CHRISTMAS/tailwind.html index f916832558..2652fc9457 100644 --- a/files/templates/CHRISTMAS/tailwind.html +++ b/files/templates/CHRISTMAS/tailwind.html @@ -5,7 +5,7 @@ - + Flask + Tailwind CSS diff --git a/files/templates/authforms.html b/files/templates/authforms.html index f073961f7d..4b9e83612b 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,11 +14,11 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/comments.html b/files/templates/comments.html index 004244c924..5a6a21a1b0 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -232,7 +232,7 @@
removed by @{{c.ban_reason}}
{% endif %} -
+
{{c.realbody(v) | safe}} {% if c.options %} {{c.options_html(v) | safe}} diff --git a/files/templates/default.html b/files/templates/default.html index 67684b04a0..222b7793a2 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -6,12 +6,12 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/log.html b/files/templates/log.html index e75c115db8..c67bae66c3 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,11 +6,11 @@ {% block content %} {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html index 0b9921594e..cddbbcc67c 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -17,7 +17,7 @@ {% endblock %} - + diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html index ca6629e9fb..ed737489e8 100644 --- a/files/templates/login_2fa.html +++ b/files/templates/login_2fa.html @@ -13,7 +13,7 @@ 2-Step Login - {{'SITE_NAME' | app_config}} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 72f01037a8..f3dcb42b96 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -33,7 +33,7 @@ - + {% if v.agendaposter %}{% elif v.css %}{% endif %} diff --git a/files/templates/settings2.html b/files/templates/settings2.html index 36254c953a..2aea1c5525 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -38,10 +38,10 @@ {% if v %} - + {% else %} - + {% endif %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 6265b6aad9..4fed1f3efe 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -30,7 +30,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}Sign up - {{'SITE_NAME' | app_config}}{% endif %} - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index be5d00e03f..19c48e9f86 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -31,7 +31,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}{{'SITE_NAME' | app_config}}{% endif %} - + diff --git a/files/templates/submission.html b/files/templates/submission.html index c551c155f3..7a82d60064 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -356,13 +356,13 @@
{% endif %} {% if p.realurl(v) %} -

+

{% if p.club %}{{cc}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}}

{% else %} -

+

{% if p.club %}{{cc}}{% endif %} {% if p.flair %}{{p.flair | safe}}{% endif %} {{p.realtitle(v) | safe}} @@ -396,7 +396,7 @@ {% endif %} -
+
{% if p.is_image %}