From 4733683e9178710923d4f5ba524419c84c4d0cbc Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 27 Sep 2020 22:31:59 +0200 Subject: [PATCH] Update src/Model/FContact.php Co-authored-by: Hypolite Petovan --- src/Model/FContact.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/Model/FContact.php b/src/Model/FContact.php index 20ec52971..f61100093 100644 --- a/src/Model/FContact.php +++ b/src/Model/FContact.php @@ -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; }