Skip to content

Node.js based forum software built for the modern web

fix: show recipient in ap errors page

Julian Lam668564676065
diff --git a/src/controllers/admin/federation.js b/src/controllers/admin/federation.js
index cf11ed7ff5..1ccabe6b7c 100644
--- a/src/controllers/admin/federation.js
+++ b/src/controllers/admin/federation.js
@@ -122,7 +122,7 @@ federationController.errors = async function (req, res) {
if (!errorObj[idx]) {
return null;
}
- let { type, body, stack } = errorObj[idx];
+ let { type, body, stack, recipient } = errorObj[idx];
let activityType;
let hostname = 'Invalid hostname';
const timestampISO = new Date(timestamp).toISOString();
@@ -148,6 +148,7 @@ federationController.errors = async function (req, res) {
type: type || '',
activityType: activityType || '',
body: body || '',
+ recipient: recipient || '',
stack,
hostname,
timestamp,