fix: update handling of Announce(Create(Note)) to also handle non-note types

This commit is contained in:
Julian Lam
2024-07-04 17:00:14 -04:00
parent 7e23e192d8
commit 600b1a8622

View File

@@ -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;