Stop storing activitypub json in db entirely
This commit is contained in:
parent
8d081548cd
commit
f28ee934fc
7 changed files with 150 additions and 288 deletions
|
@ -55,40 +55,21 @@
|
|||
<h2>
|
||||
{% include 'snippets/avatar.html' with user=activity.user %}
|
||||
{% include 'snippets/username.html' with user=activity.user %}
|
||||
{% if activity.fedireads_type == 'Shelve' %}
|
||||
{# display a reading/shelving activity #}
|
||||
{% if activity.shelf.identifier == 'to-read' %}
|
||||
wants to read
|
||||
{% elif activity.shelf.identifier == 'read' %}
|
||||
finished reading
|
||||
{% elif activity.shelf.identifier == 'reading' %}
|
||||
started reading
|
||||
{% else %}
|
||||
shelved in "{{ activity.shelf.name }}"
|
||||
{% endif %}
|
||||
</h2>
|
||||
<div class="book-preview">
|
||||
{% include 'snippets/book.html' with book=activity.book size=large description=True %}
|
||||
</div>
|
||||
<div class="interaction"><button>⭐️ Like</button></div>
|
||||
{% elif activity.fedireads_type == 'Review' %}
|
||||
{% if activity.status_type == 'Review' %}
|
||||
{# display a review #}
|
||||
reviewed {{ activity.book.data.title }}
|
||||
</h2>
|
||||
<div class="book-preview review">
|
||||
{% include 'snippets/book.html' with book=activity.book size=large %}
|
||||
|
||||
<h3>{{ activity.content.name }}</h3>
|
||||
<p>{{ activity.content.rating | stars }}</p>
|
||||
<p>{{ activity.content.content | safe }}</p>
|
||||
<h3>{{ activity.name }}</h3>
|
||||
<p>{{ activity.rating | stars }}</p>
|
||||
<p>{{ activity.content | safe }}</p>
|
||||
</div>
|
||||
<div class="interaction"><button>⭐️ Like</button></div>
|
||||
{% elif activity.activity_type == 'Follow' %}
|
||||
started following someone
|
||||
</h2>
|
||||
{% elif activity.activity_type == 'Note' %}
|
||||
{% elif activity.status_type == 'Note' %}
|
||||
posted</h2>
|
||||
{{ activity.content.object.content | safe }}
|
||||
{{ activity.content | safe }}
|
||||
{% else %}
|
||||
{# generic handling for a misc activity, which perhaps should not be displayed at all #}
|
||||
did {{ activity.activity_type }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue