spoiler veil for author too; veil history comments
Some checks failed
CI / Check / Test (push) Has been cancelled
CI / Check / Test (pull_request) Has been cancelled

This commit is contained in:
2026-10-25 19:50:11 +01:00
parent 21b6ff8f60
commit d694df4d8a
11 changed files with 18 additions and 31 deletions

View File

@@ -219,9 +219,8 @@
<span class="star {% if filled %}filled{% else %}empty{% endif %}">★</span>
{% endfor %}
</div>
{% let author = ctx.is_current_user(entry.review().user_id().value()) %}
{% if let Some(comment) = entry.review().comment() %}
{% if !author && entry.review().spoilers() %}
{% if entry.review().spoilers() %}
<details class="comment spoiler">
<summary style="cursor:pointer;opacity:.75">Contains spoilers</summary>
{{ comment.value() }}