mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 19:11:09 +00:00
Fixes review display in feed (set local type)
This commit is contained in:
parent
8bd566bccb
commit
e7a0c261be
2 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@ class ReviewActivity(Activity):
|
|||
|
||||
def save(self, *args, **kwargs):
|
||||
self.activity_type = 'Article'
|
||||
self.fedireads_type = 'Review'
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue