The desktop notifications have been reworked
This commit is contained in:
parent
632d1024f7
commit
42de5c77d0
7 changed files with 476 additions and 290 deletions
|
@ -262,6 +262,9 @@ function settings_post(App $a)
|
|||
$unlisted = (($_POST['unlisted'] == 1) ? 1: 0);
|
||||
$accessiblephotos = (($_POST['accessible-photos'] == 1) ? 1: 0);
|
||||
|
||||
$notify_like = (($_POST['notify_like'] == 1) ? 1 : 0);
|
||||
$notify_announce = (($_POST['notify_announce'] == 1) ? 1 : 0);
|
||||
|
||||
$email_textonly = (($_POST['email_textonly'] == 1) ? 1 : 0);
|
||||
$detailed_notif = (($_POST['detailed_notif'] == 1) ? 1 : 0);
|
||||
|
||||
|
@ -358,6 +361,9 @@ function settings_post(App $a)
|
|||
DI::pConfig()->set(local_user(), 'expire', 'photos', $expire_photos);
|
||||
DI::pConfig()->set(local_user(), 'expire', 'network_only', $expire_network_only);
|
||||
|
||||
DI::pConfig()->set(local_user(), 'system', 'notify_like', $notify_like);
|
||||
DI::pConfig()->set(local_user(), 'system', 'notify_announce', $notify_announce);
|
||||
|
||||
DI::pConfig()->set(local_user(), 'system', 'email_textonly', $email_textonly);
|
||||
DI::pConfig()->set(local_user(), 'system', 'detailed_notif', $detailed_notif);
|
||||
DI::pConfig()->set(local_user(), 'system', 'notify_ignored', $notify_ignored);
|
||||
|
@ -771,6 +777,10 @@ function settings_content(App $a)
|
|||
'$notify7' => ['notify7', DI::l10n()->t('You are tagged in a post'), ($notify & Notification\Type::TAG_SELF), Notification\Type::TAG_SELF, ''],
|
||||
'$notify8' => ['notify8', DI::l10n()->t('You are poked/prodded/etc. in a post'), ($notify & Notification\Type::POKE), Notification\Type::POKE, ''],
|
||||
|
||||
'$lbl_notify' => DI::l10n()->t('Create a desktop notification when:'),
|
||||
'$notify_like' => ['notify_like', DI::l10n()->t('Someone liked your content'), DI::pConfig()->get(local_user(), 'system', 'notify_like'), ''],
|
||||
'$notify_announce' => ['notify_announce', DI::l10n()->t('Someone shared your content'), DI::pConfig()->get(local_user(), 'system', 'notify_announce'), ''],
|
||||
|
||||
'$desktop_notifications' => ['desktop_notifications', DI::l10n()->t('Activate desktop notifications') , false, DI::l10n()->t('Show desktop popup on new notifications')],
|
||||
|
||||
'$email_textonly' => ['email_textonly', DI::l10n()->t('Text-only notification emails'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue