Skip to content

Commit

Permalink
fix hiding the “Patrons” section of a profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Nov 30, 2024
1 parent 7adaccb commit 5292d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/%username/index.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
<h3>{{ _("Patrons") }}
&nbsp;
<small><a href="{{ participant.path('patrons/public.csv') }}">{{ icon('download', _("Export as CSV")) }}</a></small>
Expand Down

0 comments on commit 5292d9d

Please sign in to comment.