Move Notify::TYPE_TAGSHARE

This commit is contained in:
nupplaPhil 2020-02-04 22:14:42 +01:00
parent 51260f234f
commit bee110dc0b
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
3 changed files with 5 additions and 2 deletions

View file

@ -140,7 +140,6 @@ define('MAX_LIKERS', 75);
* Email notification options * Email notification options
* @{ * @{
*/ */
define('NOTIFY_TAGSHARE', 256);
define('NOTIFY_POKE', 512); define('NOTIFY_POKE', 512);
define('NOTIFY_SHARE', 1024); define('NOTIFY_SHARE', 1024);

View file

@ -261,7 +261,7 @@ function notification($params)
$itemlink = $params['link']; $itemlink = $params['link'];
} }
if ($params['type'] == NOTIFY_TAGSHARE) { if ($params['type'] == Notify\Type::TAG_SHARE) {
$itemlink = $params['link']; $itemlink = $params['link'];
$subject = $l10n->t('[Friendica:Notify] %s tagged your post', $params['source_name']); $subject = $l10n->t('[Friendica:Notify] %s tagged your post', $params['source_name']);

View file

@ -25,4 +25,8 @@ class Type
const PROFILE = 64; const PROFILE = 64;
/** @var int Notification about being tagged in a post */ /** @var int Notification about being tagged in a post */
const TAG_SELF = 128; const TAG_SELF = 128;
/** @var int Notification about being tagged
* @deprecated
*/
const TAG_SHARE = 256;
} }