feat: implement 'advisory' config property

This commit is contained in:
ayo 2026-06-06 11:43:09 +02:00
parent a197760d19
commit 6c688bb879
2 changed files with 5 additions and 1 deletions

View file

@ -6,7 +6,8 @@
"description": "Hand-picked public posts from my social feed", "description": "Hand-picked public posts from my social feed",
"server": "https://social.ayco.io", "server": "https://social.ayco.io",
"user_id": "0123456789", "user_id": "0123456789",
"max_summary_length": 100 "max_summary_length": 100,
"advisory": false
} }
}, },
"ATTRIBUTION": { "ATTRIBUTION": {

View file

@ -162,6 +162,9 @@
</header> </header>
<main> <main>
<h3>Whoa!</h3> <h3>Whoa!</h3>
{%if app.advisory is not false %}
<p>{{ app.advisory | safe }}</p>
{% endif %}
<p class="error-message">{{message}}</p> <p class="error-message">{{message}}</p>
</main> </main>
<footer> <footer>