default notification settings
Hello together, is there a way to change the default notification settings for new users? For example it would be great if the option “A new file or folder has been created” via mail is by default activated.
thanks for any advice :-)
Well since each app can controll the default of it's type, it becomes somewhat difficult: https://github.com/owncloud/core/blob/master/apps/files/lib/activity.php#L110-L128
But you can add it yourself in that file, until we found a solution that works globally.
if ($method === self::METHOD_MAIL) {
$settings = array();
$settings[] = self::TYPE_SHARE_CREATED;
return $settings;
}
@partyisover as you deleted your comment, I assume that worked for you?
yap, it worked... I'm still using last version (8.1.3) of owncloud, so I had to change first line of your code a bit:
if ($method === 'email') {
$settings = array();
$settings[] = self::TYPE_SHARE_CREATED;
return $settings;
}
thx
There is now an app providing this functionality:
https://apps.owncloud.com/content/show.php/ActivityDefaults?content=174669
Are you developers planning to actually implement it into the core? I believe it should be there without the need to install an external app... (I cannot find it anywhere in our 9.1.4)
The ActivityDefaults app seems to have vanished from the marketplace. Is there any way to configure defaults for Activity notification settings in OC 10.x?