Unexpected Activity/object combinations cause endpoint crash
I have populated my database with activities of activity-object pairs Announce/Event (corresponding to GNU Social events) and Announce/Link (corresponding to GNU Social bookmark sharing.) In both cases this causes an error that makes the timeline stop loading. (Activity type Question, corresponding to GNU Social polls, seems to be correctly ignored however.) I have not tested poll responses (they are close to regular notes) or Event RSVP types yet.
Would recommend just more robust handling of unexpected activity/object combinations until they can be supported proper.
If you think the way I'm building the JSON is incorrect, let me know and I can fix that too.
I have attached the offending JSON and the error stacktrace.pleroma.errors.txt