]> git.mxchange.org Git - friendica-addons.git/commitdiff
Move Notify::TYPE_COMMENT
authornupplaPhil <admin+github@philipp.info>
Tue, 4 Feb 2020 21:08:59 +0000 (22:08 +0100)
committernupplaPhil <admin+github@philipp.info>
Wed, 5 Feb 2020 20:43:30 +0000 (21:43 +0100)
gnot/gnot.php

index 686b1f65d3c204aad38a5cf6079043eb5ab513b2..26012c44187bd8688ec1eb882fb9f7914b5f7e0b 100644 (file)
@@ -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']);
 }