mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +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
|
||||
if (object.type === 'Create' && object.object.type === 'Note') {
|
||||
// Handle case where Announce(Create(Note-ish)) is received
|
||||
if (object.type === 'Create' && activitypub._constants.acceptedPostTypes.includes(object.object.type)) {
|
||||
pid = object.object.id;
|
||||
} else {
|
||||
pid = object.id;
|
||||
|
||||
Reference in New Issue
Block a user