From 9df3fceef4e1db293a31c3db0055b7d476724d1a Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 17 Oct 2023 21:50:13 +0300 Subject: [PATCH] title -> flair --- files/routes/admin.py | 2 +- files/routes/settings.py | 2 +- files/templates/settings/personal.html | 2 +- files/templates/userpage/admintools.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 0744bdbe1c..5af6c5fb80 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -917,7 +917,7 @@ def admin_change_flair(user_id, v): user = get_account(user_id) - new_flair = request.values.get("title")[:256].strip() + new_flair = request.values.get("flair")[:256].strip() user.flair = new_flair new_flair = filter_emojis_only(new_flair) diff --git a/files/routes/settings.py b/files/routes/settings.py index 91d1386332..97f92c6b85 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -922,7 +922,7 @@ def process_settings_plaintext(value, current, length, default_value): def settings_change_flair(v): if v.flairchanged: abort(403) - flair = process_settings_plaintext("title", v.flair, 100, None) + flair = process_settings_plaintext("flair", v.flair, 100, None) if flair: flair_html = filter_emojis_only(flair) diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index 2de804a476..e60ba0fe69 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -207,7 +207,7 @@ {{common.line_text_section('pronouns', '/settings/pronouns_change', 'pronouns', 'Pronouns', v.pronouns, 'Limit of 15 characters', 'Enter pronouns here', 'Change Pronouns', false, 3, 15, '([a-zA-Z]{1,7})/[a-zA-Z]{1,7}(/[a-zA-Z]{1,7})?', false)}} {% endif %} - {{common.line_text_section('flair', '/settings/change_flair', 'title', 'Flair', v.flair, 'Limit of 100 characters', 'Enter a flair here', 'Change Flair', true, 0, 100, '.*', v.flairchanged)}} + {{common.line_text_section('flair', '/settings/change_flair', 'flair', 'Flair', v.flair, 'Limit of 100 characters', 'Enter a flair here', 'Change Flair', true, 0, 100, '.*', v.flairchanged)}} {{common.color_section('flaircolor', '/settings/titlecolor', 'titlecolor', 'Flair Color', v.titlecolor)}} diff --git a/files/templates/userpage/admintools.html b/files/templates/userpage/admintools.html index 6e278be4d6..080bb6631f 100644 --- a/files/templates/userpage/admintools.html +++ b/files/templates/userpage/admintools.html @@ -38,7 +38,7 @@
- +
{{macros.emoji_btn('flair_htmlbody-' ~ deviceType)}}