]> git.mxchange.org Git - friendica-addons.git/blobdiff - gnot/gnot.php
IT translation update blackout addon THX Sylke Vicious
[friendica-addons.git] / gnot / gnot.php
index 8420ffe498e38addfd097ba5d1d84b9a8b61519b..ca32d6d5e6134ef932ee2d713e13a1d2b4ca1b4d 100644 (file)
@@ -7,11 +7,12 @@
  * 
  *
  */
+
 use Friendica\Core\Hook;
 use Friendica\Core\Logger;
 use Friendica\Core\Renderer;
 use Friendica\DI;
-use Friendica\Model\Notify\Type;
+use Friendica\Model\Notification;
 
 function gnot_install() {
 
@@ -79,6 +80,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'] == Type::COMMENT)
+       if($b['type'] == Notification\Type::COMMENT)
                $b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);
 }