From 4e9838f5717f789c650a1109574189e23fdf88da Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Tue, 4 Feb 2020 22:08:59 +0100 Subject: [PATCH] Move Notify::TYPE_COMMENT --- gnot/gnot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnot/gnot.php b/gnot/gnot.php index 686b1f65d..26012c441 100644 --- a/gnot/gnot.php +++ b/gnot/gnot.php @@ -11,6 +11,7 @@ use Friendica\Core\Hook; use Friendica\Core\Logger; use Friendica\Core\Renderer; use Friendica\DI; +use Friendica\Model\Notify\Type; function gnot_install() { @@ -92,6 +93,6 @@ function gnot_settings(&$a,&$s) { function gnot_enotify_mail(&$a,&$b) { if((! $b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable')))) return; - if($b['type'] == NOTIFY_COMMENT) + if($b['type'] == Type::COMMENT) $b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']); }