diff --git a/fedireads/templatetags/fr_display.py b/fedireads/templatetags/fr_display.py index 7af5be26..76b1efaf 100644 --- a/fedireads/templatetags/fr_display.py +++ b/fedireads/templatetags/fr_display.py @@ -19,6 +19,8 @@ def stars(number): number = int(number) except (ValueError, TypeError): number = 0 + if not number: + return '' return ('★' * number) + '☆' * (5 - number)