refactor: split activitypub tests to subfolder files

This commit is contained in:
Julian Lam
2024-04-26 11:30:08 -04:00
parent 5e776088c9
commit 94eafe1df3
6 changed files with 231 additions and 196 deletions

View File

@@ -228,7 +228,7 @@ Mocks.note = async (post) => {
inReplyTo = utils.isNumber(post.topic.mainPid) ? `${nconf.get('url')}/post/${post.topic.mainPid}` : post.topic.mainPid;
to.add(utils.isNumber(post.topic.uid) ? `${nconf.get('url')}/uid/${post.topic.uid}` : post.topic.uid);
} else { // new topic
name = await topics.getTitleByPid(post.pid);
({ titleRaw: name } = await topics.getTopicFields(post.tid, ['title']));
tag = post.topic.tags.map(tag => ({
type: 'Hashtag',
href: `${nconf.get('url')}/tags/${tag.valueEncoded}`,