fix: category follow schema test

This commit is contained in:
Julian Lam
2024-06-17 14:46:53 -04:00
parent a458bdd638
commit 4b8a9e58ae
2 changed files with 10 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ const posts = require('../src/posts');
const plugins = require('../src/plugins');
const flags = require('../src/flags');
const messaging = require('../src/messaging');
const activitypub = require('../src/activitypub');
const utils = require('../src/utils');
const api = require('../src/api');
@@ -317,6 +318,13 @@ describe('API', async () => {
// Retrieve CSRF token using cookie, to test Write API
csrfToken = await helpers.getCsrfToken(jar);
// Pre-seed ActivityPub cache so contrived actor assertions pass
activitypub._cache.set(`0;https://example.org/foobar`, {
id: 'https://example.org/foobar',
name: 'foobar',
publicKey: 'secretcat',
});
setup = true;
}