mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
fix: update handling of Announce(Create(Note)) to also handle non-note types
This commit is contained in:
@@ -239,8 +239,8 @@ inbox.announce = async (req) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle case where Announce(Create(Note)) is received
|
// Handle case where Announce(Create(Note-ish)) is received
|
||||||
if (object.type === 'Create' && object.object.type === 'Note') {
|
if (object.type === 'Create' && activitypub._constants.acceptedPostTypes.includes(object.object.type)) {
|
||||||
pid = object.object.id;
|
pid = object.object.id;
|
||||||
} else {
|
} else {
|
||||||
pid = object.id;
|
pid = object.id;
|
||||||
|
|||||||
Reference in New Issue
Block a user