mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46: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');
|
tid = await posts.getPostField(id, 'tid');
|
||||||
} else {
|
} else {
|
||||||
pid = object;
|
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) {
|
if (!tid) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user