Skip to content

Node.js based forum software built for the modern web

test: have actor assertion always use cache for tests

Julian Lamad05f06b0018
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 {