diff --git a/fedireads/models/activity.py b/fedireads/models/activity.py index 855637f59..30fcbfc07 100644 --- a/fedireads/models/activity.py +++ b/fedireads/models/activity.py @@ -49,6 +49,7 @@ class ReviewActivity(Activity): def save(self, *args, **kwargs): self.activity_type = 'Article' + self.fedireads_type = 'Review' super().save(*args, **kwargs) diff --git a/fedireads/templatetags/fr_display.py b/fedireads/templatetags/fr_display.py index 9beec01dc..518192097 100644 --- a/fedireads/templatetags/fr_display.py +++ b/fedireads/templatetags/fr_display.py @@ -13,7 +13,7 @@ def stars(number): ''' turn integers into stars ''' try: number = int(number) - except TypeError: + except (ValueError, TypeError): number = 0 return ('★' * number) + '☆' * (5 - number)