mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
Avoid crash on viewing unlogged ActivityPub JSON
This commit is contained in:
parent
16f84f28a6
commit
22fad8c1f1
1 changed files with 8 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue