Formatted.
When adding activities via API only do a notification if notifications
are enabled for the user (better compatibility with current behavior).