]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Mail.php
Issue 10105: Use legacy photo data field if used
[friendica.git] / src / Model / Mail.php
index 2670a5885f2d8ef57dde74d9fcc0dd723b0ab020..e7ed2c8454b9910b1f015cb43537a512eb1e2415 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,9 +24,8 @@ namespace Friendica\Model;
 use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
-use Friendica\DI;
 use Friendica\Database\DBA;
-use Friendica\Model\Notify\Type;
+use Friendica\DI;
 use Friendica\Protocol\Activity;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Worker\Delivery;
@@ -84,8 +83,8 @@ class Mail
 
                // send notifications.
                $notif_params = [
-                       'type'  => Type::MAIL,
-                       'otype' => Notify\ObjectType::MAIL,
+                       'type'  => Notification\Type::MAIL,
+                       'otype' => Notification\ObjectType::MAIL,
                        'verb'  => Activity::POST,
                        'uid'   => $user['uid'],
                        'cid'   => $msg['contact-id'],