From 5292d9d059b4f3a94814085801371ed5400bb4be Mon Sep 17 00:00:00 2001 From: Changaco Date: Fri, 29 Nov 2024 10:20:41 +0100 Subject: [PATCH] =?UTF-8?q?fix=20hiding=20the=20=E2=80=9CPatrons=E2=80=9D?= =?UTF-8?q?=20section=20of=20a=20profile=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/%username/index.html.spt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/%username/index.html.spt b/www/%username/index.html.spt index db64d474b..23922986b 100644 --- a/www/%username/index.html.spt +++ b/www/%username/index.html.spt @@ -29,7 +29,7 @@ communities = () # participant.get_communities() langs = participant.get_statement_langs(include_conversions=True) patron_visibilities = participant.recipient_settings.patron_visibilities or 0 -if patron_visibilities > 1: +if patron_visibilities & 4: public_patrons = website.db.all(""" SELECT tipper_p.id , tipper_p.avatar_url @@ -208,7 +208,7 @@ show_income = not participant.hide_receiving and participant.accepts_tips % endif % endif - % if patron_visibilities > 1 and n_public_patrons + % if n_public_patrons|default(0)

{{ _("Patrons") }}   {{ icon('download', _("Export as CSV")) }}