{# do not use any back ticks in the HTML produced by this template - javascript needs to load it as a string. See community.html #} {% set content_blocked = post.blocked_by_content_filter(content_filters) or (current_user.hide_nsfw == 3 and post.nsfw) or (current_user.hide_nsfl == 3 and post.nsfl) or (current_user.ignore_bots == 3 and post.from_bot) -%} {% set blur_content = (current_user.hide_nsfw == 2 and post.nsfw) or (current_user.hide_nsfl == 2 and post.nsfl) or (current_user.ignore_bots == 2 and post.from_bot) -%} {% if content_blocked and content_blocked == '-1' %} {# do nothing - blocked by keyword filter #} {% else %} {% set post_title = post.title.replace('`', "'") %}
{% if post.image_id %}
{% if post.type == POST_TYPE_LINK or post.type == POST_TYPE_VIDEO %} {% if post.image.medium_url() %} {{ post.image.alt_text if post.image.alt_text else '' }} {% elif post.image.source_url %} {{ post.title.replace('`', {% else %} {{ post_title }} {% endif %} {% elif post.type == POST_TYPE_IMAGE %} {{ post.image.alt_text if post.image.alt_text else '' }} {% else %} {{ post.image.alt_text if post.image.alt_text else '' }} {% endif %}
{% include "post/_post_voting_buttons_masonry.html" %}
{% if post.reply_count %}{{ post.reply_count }}{% endif %}
{% else %} {% if post.url and (post.url.endswith('.jpg') or post.url.endswith('.webp') or post.url.endswith('.png') or post.url.endswith('.gif') or post.url.endswith('.avif') or post.url.endswith('.jpeg')) %}
{{ post_title }}
{% include "post/_post_voting_buttons_masonry.html" %}
{% if post.reply_count %}{{ post.reply_count }}{% endif %}
{% else %}

{{ post_title }}

{% endif %} {% endif %}
{% endif %}