diff --git a/files/routes/admin.py b/files/routes/admin.py index 0744bdbe1..5af6c5fb8 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 91d138633..97f92c6b8 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 2de804a47..e60ba0fe6 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 6e278be4d..080bb6631 100644 --- a/files/templates/userpage/admintools.html +++ b/files/templates/userpage/admintools.html @@ -38,7 +38,7 @@
- +
{{macros.emoji_btn('flair_htmlbody-' ~ deviceType)}}