Move Notify::TYPE_POKE
This commit is contained in:
parent
bee110dc0b
commit
a78e19ea76
1
boot.php
1
boot.php
|
@ -140,7 +140,6 @@ define('MAX_LIKERS', 75);
|
|||
* Email notification options
|
||||
* @{
|
||||
*/
|
||||
define('NOTIFY_POKE', 512);
|
||||
define('NOTIFY_SHARE', 1024);
|
||||
|
||||
define('NOTIFY_SYSTEM', 32768);
|
||||
|
|
|
@ -242,7 +242,7 @@ function notification($params)
|
|||
$itemlink = $params['link'];
|
||||
}
|
||||
|
||||
if ($params['type'] == NOTIFY_POKE) {
|
||||
if ($params['type'] == Notify\Type::POKE) {
|
||||
$subject = $l10n->t('[Friendica:Notify] %1$s poked you', $params['source_name']);
|
||||
|
||||
$preamble = $l10n->t('%1$s poked you at %2$s', $params['source_name'], $sitename);
|
||||
|
|
|
@ -1237,7 +1237,7 @@ function settings_content(App $a)
|
|||
'$notify5' => ['notify5', DI::l10n()->t('You receive a private message'), ($notify & Type::MAIL), Type::MAIL, ''],
|
||||
'$notify6' => ['notify6', DI::l10n()->t('You receive a friend suggestion'), ($notify & Type::SUGGEST), Type::SUGGEST, ''],
|
||||
'$notify7' => ['notify7', DI::l10n()->t('You are tagged in a post'), ($notify & Type::TAG_SELF), Type::TAG_SELF, ''],
|
||||
'$notify8' => ['notify8', DI::l10n()->t('You are poked/prodded/etc. in a post'), ($notify & NOTIFY_POKE), NOTIFY_POKE, ''],
|
||||
'$notify8' => ['notify8', DI::l10n()->t('You are poked/prodded/etc. in a post'), ($notify & Type::POKE), Type::POKE, ''],
|
||||
|
||||
'$desktop_notifications' => ['desktop_notifications', DI::l10n()->t('Activate desktop notifications') , false, DI::l10n()->t('Show desktop popup on new notifications')],
|
||||
|
||||
|
|
|
@ -29,4 +29,6 @@ class Type
|
|||
* @deprecated
|
||||
*/
|
||||
const TAG_SHARE = 256;
|
||||
/** @var int Notification about getting poked/prodded/etc. */
|
||||
const POKE = 512;
|
||||
}
|
||||
|
|
|
@ -2137,7 +2137,7 @@ class DFRN
|
|||
// send a notification
|
||||
notification(
|
||||
[
|
||||
"type" => NOTIFY_POKE,
|
||||
"type" => Type::POKE,
|
||||
"notify_flags" => $importer["notify-flags"],
|
||||
"language" => $importer["language"],
|
||||
"to_name" => $importer["username"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user