]> git.mxchange.org Git - friendica.git/commitdiff
Move Notify::TYPE_TAGSHARE
authornupplaPhil <admin+github@philipp.info>
Tue, 4 Feb 2020 21:14:42 +0000 (22:14 +0100)
committernupplaPhil <admin+github@philipp.info>
Wed, 5 Feb 2020 20:41:05 +0000 (21:41 +0100)
boot.php
include/enotify.php
src/Model/Notify/Type.php

index 6e5777e6befd0fc1bb0081b85d94f27cdda1f6d4..f7d7c298f23f64903beae98238d16ac51f09452e 100644 (file)
--- 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);
 
index 09b5e7905740e4760f59f66bc119f6a9f4310319..d3c4c74f3932d6d8ddb2473b9e60c46f972e881e 100644 (file)
@@ -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']);
 
index c6f921b456d2d77e0a6c00080d7bf0903eba7a43..b329d7696b5bb1d0d1703835e5be330b8240456c 100644 (file)
@@ -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;
 }