From ad05f06b0018334860d5f340bcd8bb4e3296cfc6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 10 Jul 2024 13:47:23 -0400 Subject: [PATCH] test: have actor assertion always use cache for tests --- src/activitypub/actors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/actors.js b/src/activitypub/actors.js index 711c9d6739..4a19aabf8c 100644 --- a/src/activitypub/actors.js +++ b/src/activitypub/actors.js @@ -86,7 +86,7 @@ Actors.assert = async (ids, options = {}) => { let actors = await Promise.all(ids.map(async (id) => { try { // winston.verbose(`[activitypub/actors] Processing ${id}`); - const actor = (typeof id === 'object' && id.hasOwnProperty('id')) ? id : await activitypub.get('uid', 0, id, { cache: false }); + const actor = (typeof id === 'object' && id.hasOwnProperty('id')) ? id : await activitypub.get('uid', 0, id, { cache: process.env.CI === 'true' }); // Follow counts try {