immers-space / activitypub-express

Modular ActivityPub implementation as Express JS middleware to easily add decentralization and federation to Node apps
MIT License
299 stars 24 forks source link

Mastodon Announce fails to validate #52

Open wmurphyrd opened 3 years ago

wmurphyrd commented 3 years ago

Masto Announces objects (e.g. Note) but we're looking for an activity

kona314 commented 1 year ago

I'm dealing with this same problem, though I traced it via Likes, not Announces.

Is there a recommended solution to handle it? I found that in pub.activity.resolveActivity I can add a step that attempts to fetch the activity from streams by checking the object.id and that appears to get most of the way there.

I'm noticing though that the apex-inbox event isn't being fired afterward, even though the entire rest of the next.inbox.post middleware is called. I haven't yet been able to track down why.