akhoury / nodebb-plugin-emailer-mandrill

An emailer plugin for NodeBB using Mandrill as a third party service
MIT License
3 stars 11 forks source link

Fix Cannot read property 'pid' of undefined #28

Closed firstred closed 6 years ago

firstred commented 6 years ago

When you receive a notification you cannot reply to, data._raw.notification will be undefined. This PR adds a check to see if it exists before trying to grab the pid. If you cannot reply to the notification (not a post), then the Reply-To header will not be set (and the module no longer crashes \o/).

barisusakli commented 6 years ago

LGTM

julianlam commented 6 years ago

v0.3.8