activity icon indicating copy to clipboard operation
activity copied to clipboard

default notification settings

Open partyisover opened this issue 10 years ago • 6 comments

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 :-)

partyisover avatar Nov 04 '15 14:11 partyisover

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;
        }

nickvergessen avatar Nov 05 '15 09:11 nickvergessen

@partyisover as you deleted your comment, I assume that worked for you?

nickvergessen avatar Nov 05 '15 14:11 nickvergessen

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

partyisover avatar Nov 05 '15 14:11 partyisover

There is now an app providing this functionality:

https://apps.owncloud.com/content/show.php/ActivityDefaults?content=174669

ghost avatar Feb 18 '16 22:02 ghost

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)

crysman avatar Mar 07 '17 14:03 crysman

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?

va1entin avatar Dec 10 '18 15:12 va1entin