diff --git a/app/admin/routes.py b/app/admin/routes.py index db802fed..881b0516 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -592,7 +592,7 @@ def admin_activities(): def activity_json(activity_id): activity = ActivityPubLog.query.get_or_404(activity_id) return render_template('admin/activity_json.html', title=_('Activity JSON'), - activity_json_data=json.loads(activity.activity_json), activity=activity, + activity_json_data=activity.activity_json, activity=activity, current_app=current_app, site=g.site) diff --git a/app/templates/admin/activity_json.html b/app/templates/admin/activity_json.html index 9c3dcb0a..28960783 100644 --- a/app/templates/admin/activity_json.html +++ b/app/templates/admin/activity_json.html @@ -11,7 +11,7 @@

{{ _('Activity JSON') }}

-
{{ activity_json_data | tojson(indent=2) }}
+

{{ activity_json_data }}

{% if current_app.debug %}

Re-submit this activity

{% endif %}