fix: wrong var

This commit is contained in:
Julian Lam
2026-04-13 22:34:20 -04:00
parent 4c0efe53f5
commit c9a0c3ff8d

View File

@@ -499,10 +499,10 @@ ActivityPub.record.send = async ({ type, target }) => {
]);
};
ActivityPub.record.sendError = async ({ payload, target, error }) => {
ActivityPub.record.sendError = async ({ payload, uri, error }) => {
const { id } = payload;
const now = Date.now();
const { hostname } = new URL(target);
const { hostname } = new URL(uri);
await Promise.all([
db.sortedSetAdd('ap.errors', now, id),
db.setObject(`ap.errors:${id}`, {