From bee110dc0b3039c1ed375b9b7febd2de3f63519b Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 4 Feb 2020 22:14:42 +0100 Subject: [PATCH] Move Notify::TYPE_TAGSHARE --- boot.php | 1 - include/enotify.php | 2 +- src/Model/Notify/Type.php | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/boot.php b/boot.php index 6e5777e6be..f7d7c298f2 100644 --- a/boot.php +++ b/boot.php @@ -140,7 +140,6 @@ define('MAX_LIKERS', 75); * Email notification options * @{ */ -define('NOTIFY_TAGSHARE', 256); define('NOTIFY_POKE', 512); define('NOTIFY_SHARE', 1024); diff --git a/include/enotify.php b/include/enotify.php index 09b5e79057..d3c4c74f39 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -261,7 +261,7 @@ function notification($params) $itemlink = $params['link']; } - if ($params['type'] == NOTIFY_TAGSHARE) { + if ($params['type'] == Notify\Type::TAG_SHARE) { $itemlink = $params['link']; $subject = $l10n->t('[Friendica:Notify] %s tagged your post', $params['source_name']); diff --git a/src/Model/Notify/Type.php b/src/Model/Notify/Type.php index c6f921b456..b329d7696b 100644 --- a/src/Model/Notify/Type.php +++ b/src/Model/Notify/Type.php @@ -25,4 +25,8 @@ class Type const PROFILE = 64; /** @var int Notification about being tagged in a post */ const TAG_SELF = 128; + /** @var int Notification about being tagged + * @deprecated + */ + const TAG_SHARE = 256; }