Avoid crash on viewing unlogged ActivityPub JSON

This commit is contained in:
freamon 2024-03-14 10:08:54 +00:00
parent 16f84f28a6
commit 22fad8c1f1

View file

@ -38,7 +38,13 @@
<td><span style="color: red;">{{ activity.result }}</span></td>
{% endif %}
<td>{{ activity.exception_message if activity.exception_message else '' }}</td>
<td><a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a></td>
<td>
{% if activity.activity_json is none %}
None
{% else %}
<a href="{{ url_for('admin.activity_json', activity_id=activity.id) }}">View</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
@ -56,4 +62,4 @@
</nav>
</div>
</div>
{% endblock %}
{% endblock %}