diff --git a/fedireads/activitypub/status.py b/fedireads/activitypub/status.py index 13f6e400d..318253c08 100644 --- a/fedireads/activitypub/status.py +++ b/fedireads/activitypub/status.py @@ -25,12 +25,17 @@ def get_comment(comment): def get_review_article(review): ''' a book review formatted for a non-fedireads isntance (mastodon) ''' status = get_status(review) - if review.rating: + if review.rating and review.name: name = 'Review of "%s" (%d stars): %s' % ( review.book.title, review.rating, review.name ) + elif review.rating: + name = 'Rated "%s" (%d stars)' % ( + review.book.title, + review.rating, + ) else: name = 'Review of "%s": %s' % ( review.book.title,