diff --git a/bookwyrm/templates/author.html b/bookwyrm/templates/author.html index 39148909..3f22e09b 100644 --- a/bookwyrm/templates/author.html +++ b/bookwyrm/templates/author.html @@ -6,7 +6,7 @@ {% if author.bio %}

- {{ author.bio | author_bio }} + {{ author.bio }}

{% endif %} diff --git a/bookwyrm/templates/snippets/book_description.html b/bookwyrm/templates/snippets/book_description.html index e686dac2..f5fb3f43 100644 --- a/bookwyrm/templates/snippets/book_description.html +++ b/bookwyrm/templates/snippets/book_description.html @@ -1,7 +1,6 @@ -{% load fr_display %} {% if book.description %} -
{{ book.description | description }}
+
{{ book.description }}
{% elif book.parent_work.description %} -
{{ book.parent_work.description | description }}
+
{{ book.parent_work.description }}
{% endif %} diff --git a/bookwyrm/templatetags/fr_display.py b/bookwyrm/templatetags/fr_display.py index cf4e46bb..79d65b81 100644 --- a/bookwyrm/templatetags/fr_display.py +++ b/bookwyrm/templatetags/fr_display.py @@ -25,27 +25,6 @@ def get_rating(book, user): return 0 -@register.filter(name='description') -def description_format(description): - ''' handle the various OL description formats ''' - if not description: - return '' - - if '----------' in description: - description = description.split('----------')[0] - - return description.strip() - - -@register.filter(name='author_bio') -def bio_format(bio): - ''' clean up OL author bios ''' - if isinstance(bio, dict) and 'value' in bio: - bio = bio['value'] - bio = bio.split('\n') - return bio[0].strip() - - @register.filter(name='username') def get_user_identifier(user): ''' use localname for local users, username for remote ''' @@ -67,12 +46,6 @@ def get_replies(status): ).select_subclasses().all()[:10] -@register.filter(name='reply_count') -def get_reply_count(status): - ''' how many replies does a status have? ''' - return models.Status.objects.filter(reply_parent=status).count() - - @register.filter(name='parent') def get_parent(status): ''' get the reply parent for a status '''