Fixes review display in feed (set local type)

This commit is contained in:
Mouse Reeve 2020-02-15 12:35:54 -08:00
parent 8bd566bccb
commit e7a0c261be
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ class ReviewActivity(Activity):
def save(self, *args, **kwargs):
self.activity_type = 'Article'
self.fedireads_type = 'Review'
super().save(*args, **kwargs)

View file

@ -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)