oaeproject/Hilary — pull request #623 by mrvisser (2013-07-31 18:20:35+00:00)
Title: Discussion emails not working

Errors in the log saying:

```
[2013-07-31T15:00:53.445Z] ERROR: oae-email/3773 on release0: No email metadata template existed for user (templateModule=oae-discussion, templateId=notify-discussion-message)
err: {
"code": 500,
"msg": "No email metadata template existed for user"
}
--
toUser: {
"id": "u:oae:g1Ovqfpw",
"locale": "en_GB"
}
```

Upon further inspection, in `oae-discussions/lib/activity.js`:

```
ActivityAPI.registerActivityType(DiscussionsConstants.activity.ACTIVITY_DISCUSSION_UPDATE, {
'groupBy': [
// "Discussion Item was updated by 5 users"
{'object': true}
],
'notifications': {
'email': true,
'emailTemplateModule': 'oae-discussion',
'emailTemplateId': 'notify-discussion-update'
}
});
```

The `oae-discussion` should be `oae-discussions` :(