diff --git a/app/templates/post/_post_teaser.html b/app/templates/post/_post_teaser.html index 8d8f1401..3295a5f2 100644 --- a/app/templates/post/_post_teaser.html +++ b/app/templates/post/_post_teaser.html @@ -32,18 +32,18 @@ {% else -%} {% if post.type == POST_TYPE_VIDEO -%} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" class="{{ ' blur' if blur_content }}" /> {% elif post.type == POST_TYPE_LINK -%} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" class="{{ ' blur' if blur_content }}" /> {% elif post.type == POST_TYPE_IMAGE -%} {% if post.image_id -%} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" class="{{ ' blur' if blur_content }}" /> {% endif -%} {% else -%} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" class="{{ ' blur' if blur_content }}" /> {% endif -%} {% endif -%} @@ -54,7 +54,7 @@ {% endif -%} {% endif -%} -

{% if post.sticky -%}{% endif -%}{{ post.title }} +

{% if post.sticky -%}{% endif -%}{{ post.title }} {{ current_user.hide_nsfw }} {{ current_user.hide_nsfl }} {{ current_user.ignore_bots }} {% if post.type == POST_TYPE_IMAGE -%} {% elif post.type == POST_TYPE_POLL -%} {% elif (post.type == POST_TYPE_LINK or post.type == POST_TYPE_VIDEO) and post.domain_id -%} diff --git a/app/user/forms.py b/app/user/forms.py index b47e8097..1ef4aa0a 100644 --- a/app/user/forms.py +++ b/app/user/forms.py @@ -92,8 +92,8 @@ class ReportUserForm(FlaskForm): class FilterForm(FlaskForm): hide_type_choices = [(0, _l('Show')), (1, _l('Hide completely')), - (2, _l('Blur')), - (3, _l('Make semi-transparent'))] + (2, _l('Blur thumbnail')), + (3, _l('Make post semi-transparent'))] ignore_bots = SelectField(_l('Hide posts by bots'), choices=hide_type_choices, default=0, coerce=int, render_kw={'class': 'form-select'}) hide_nsfw = SelectField(_l('Show NSFW posts'), choices=hide_type_choices,