Fix Jinja2 error: set() is not a builtin, use [] instead
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-22 14:55:09 +00:00
parent 45377648c1
commit 04c7c97116
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
{% if actor %}
<div class="flex-shrink-0">
{% if list_type == "following" or a.actor_url in (followed_urls or set()) %}
{% if list_type == "following" or a.actor_url in (followed_urls or []) %}
<form method="post" action="{{ url_for('social.unfollow') }}"
hx-post="{{ url_for('social.unfollow') }}"
hx-target="closest article"

View File

@@ -7,7 +7,7 @@
<div id="actor-list">
{% set list_type = "following" %}
{% set followed_urls = set() %}
{% set followed_urls = [] %}
{% include "federation/_actor_list_items.html" %}
</div>
{% endblock %}