]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Model/FContact.php
authorMichael Vogel <icarus@dabo.de>
Sun, 27 Sep 2020 20:31:59 +0000 (22:31 +0200)
committerGitHub <noreply@github.com>
Sun, 27 Sep 2020 20:31:59 +0000 (22:31 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Model/FContact.php

index 20ec52971517435764dcdd4684d0b1d2fc1e6a9f..f61100093455f7243c153735a1aacfa9343880a8 100644 (file)
@@ -191,22 +191,21 @@ class FContact
                        'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
                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'  => $contact['name'],
-                               'source_link'  => $contact['url'],
-                               'source_photo' => $contact['photo'],
-                               'verb'         => Activity::REQ_FRIEND,
-                               'otype'        => 'intro']
-               );
+               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'  => $contact['name'],
+                       'source_link'  => $contact['url'],
+                       'source_photo' => $contact['photo'],
+                       'verb'         => Activity::REQ_FRIEND,
+                       'otype'        => 'intro'
+               ]);
 
                return true;
        }