From 46bfc184f56d46a98544c2731c33e701627d1bcb Mon Sep 17 00:00:00 2001 From: Christof Dorner Date: Fri, 27 Jan 2023 17:49:48 +0100 Subject: [PATCH] Improve feed header for federated generated notes This works for wants/started/finished reading generated notes, but not yet for "set a goal". --- .../templates/snippets/status/headers/generatednote.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/snippets/status/headers/generatednote.html b/bookwyrm/templates/snippets/status/headers/generatednote.html index 6a34dcd11..398dc09db 100644 --- a/bookwyrm/templates/snippets/status/headers/generatednote.html +++ b/bookwyrm/templates/snippets/status/headers/generatednote.html @@ -4,11 +4,11 @@ {# Three day cache #} {% get_current_language as LANGUAGE_CODE %} {% cache 259200 generated_note_header LANGUAGE_CODE status.id %} -{% if status.content == 'wants to read' %} +{% if status.content == 'wants to read' or status.content == '

wants to read

' %} {% include 'snippets/status/headers/to_read.html' with book=status.mention_books.first %} -{% elif status.content == 'finished reading' %} +{% elif status.content == 'finished reading' or status.content == '

finished reading

' %} {% include 'snippets/status/headers/read.html' with book=status.mention_books.first %} -{% elif status.content == 'started reading' %} +{% elif status.content == 'started reading' or status.content == '

started reading

' %} {% include 'snippets/status/headers/reading.html' with book=status.mention_books.first %} {% else %} {{ status.content }}