mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: wrong id parsed in announce
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user