From: nupplaPhil Date: Tue, 4 Feb 2020 21:14:42 +0000 (+0100) Subject: Move Notify::TYPE_TAGSHARE X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bee110dc0b3039c1ed375b9b7febd2de3f63519b;p=friendica.git Move Notify::TYPE_TAGSHARE --- 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; }