]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/FContact.php
Merge pull request #10283 from very-ape/fix-message-button
[friendica.git] / src / Model / FContact.php
index 2be8aa906c9e0bf02ee7ba473bc5366df3e653dc..cf75a03dbc1df976ecc84c505d7fde2325df95ad 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
  *
@@ -25,7 +25,6 @@ use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
 use Friendica\DI;
-use Friendica\Model\Notify\Type;
 use Friendica\Network\Probe;
 use Friendica\Protocol\Activity;
 use Friendica\Util\DateTimeFormat;
@@ -181,19 +180,13 @@ class FContact
                DBA::insert('intro', $fields);
 
                notification([
-                       'type'         => Type::SUGGEST,
-                       'notify_flags' => $owner['notify-flags'],
-                       'language'     => $owner['language'],
-                       'to_name'      => $owner['name'],
-                       'to_email'     => $owner['email'],
-                       'uid'          => $owner['uid'],
-                       'item'         => $suggest,
-                       'link'         => DI::baseUrl().'/notifications/intros',
-                       'source_name'  => $from_contact['name'],
-                       'source_link'  => $from_contact['url'],
-                       'source_photo' => $from_contact['photo'],
-                       'verb'         => Activity::REQ_FRIEND,
-                       'otype'        => 'intro'
+                       'type'  => Notification\Type::SUGGEST,
+                       'otype' => Notification\ObjectType::INTRO,
+                       'verb'  => Activity::REQ_FRIEND,
+                       'uid'   => $owner['uid'],
+                       'cid'   => $from_contact['uid'],
+                       'item'  => $suggest,
+                       'link'  => DI::baseUrl().'/notifications/intros',
                ]);
 
                return true;