feat: changes to how a topic is presented via ActivityPub; conformance with upcoming changes to 7888

This commit is contained in:
Julian Lam
2025-01-21 12:43:35 -05:00
parent 7d5482b26b
commit adeaff4b82
4 changed files with 61 additions and 31 deletions

View File

@@ -49,7 +49,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
const { tid } = context;
return { tid, count: 0 };
} else if (context.context) {
chain = Array.from(await activitypub.contexts.getItems(uid, context.context, { input }));
chain = Array.from(await activitypub.contexts.getItems(uid, context.collection, { input }));
if (chain && chain.length) {
// Context resolves, use in later topic creation
context = context.context;