go-fed / activity

ActivityStreams & ActivityPub in golang, oh my!
BSD 3-Clause "New" or "Revised" License
710 stars 111 forks source link

Fix nil derefences #134

Closed kissen closed 4 years ago

kissen commented 4 years ago

As already discussed in #131, I've found some nil dereferences when playing with the social API.

This pull request includes two commits that fix the bug discussed in #131 as well as another one I've discovered in function create of file social_wrapped_callbacks.go.

With the latter one I'm not 100% sure if it's a valid solution (where else to put those missing IRIs to?); maybe someone more familiar with ActivityPub knows better.

cjslep commented 4 years ago

Thanks a ton! Sorry about the delay.