fix: wrong id parsed in announce

This commit is contained in:
Julian Lam
2024-02-14 22:53:14 -05:00
parent 56cfae0766
commit 068c4fa90e

View File

@@ -93,7 +93,10 @@ inbox.announce = async (req) => {
tid = await posts.getPostField(id, 'tid');
} else {
pid = object;
tid = await activitypub.notes.assertTopic(0, object);
([pid, tid] = await Promise.all([
activitypub.notes.resolveId(0, pid),
activitypub.notes.assertTopic(0, pid),
]));
if (!tid) {
return;
}